(Formerly known as FileWriteRawChar, which is now obsolete)
File.WriteRawChar(int value)
Writes a single character to the specified file, in raw mode so that other
applications can read it back. If you are just creating a file for your
game to read back in, use File.WriteInt instead because it offers additional
protection. Only use this function if you need other applications to be
able to read the file in.
This command writes a single byte to the output file - therefore, VALUE can
contain any value from 0 to 255.
Example:
File *output = File.Open("output.txt", eFileWrite);
output.WriteRawChar('A');
output.WriteRawChar('B');
output.WriteRawChar(13);
output.Close();
will write the text "AB", followed by a carriage return character, to the file.
See Also: File.ReadRawChar, File.WriteInt
|