lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> file1 = io.open("file1.wav","*a")
> header1 = file1:sub(1,44)
> body1 = file1:sub(45)

Don't you mean
	file1 = io.open("file1.wav"):read("*a")