lua-users home
lua-l archive

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


Maxime Petazzoni wrote:

> I need to output specific decimal values, such as 0, but I
> did not find out how to it.

outfile = io.open(filename, "r+b")
outfile:write("\0")

or

outfile = io.open(filename, "r+b")
outfile:write(string.char(0))

See sections 2.1 (Lexical Conventions) and 5.3 (String
Manipulation) in the reference manual for more details.  

-- 
Aaron