(Formerly known as FileWriteInt, which is now obsolete)
File.WriteInt(int value)
Writes VALUE to the file. This allows you to save the contents of
variables to disk. The file must have been previously opened with File.Open,
and you can read the value back later with File.ReadInt.
Example:
int number = 6;
File *output = File.Open("stats.dat", eFileWrite);
output.WriteInt(number);
output.Close();
will open the file stats.dat and write the integer number in it.
See Also: File.ReadInt, File.WriteString
|