lua-users home
lua-l archive

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


On 2014-02-22 15:33, Michael Gerbracht wrote:

Any idea what might go wrong?

P.S.: reading a certian block of bytes intead of all ("*a") does not help
thank you very much!

Use "b" at the end of the mode string while opening a file. Probably you are using a Win C Library - it treats 0x1A as an end of a file.

-- best regards

Cezary H. Noweta