[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: File output
- From: "Aaron Brown" <aaron-lua@...>
- Date: Fri, 28 May 2004 12:15:03 -0400
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