(Formerly known as File.ReadRawLine, which is now obsolete)
String File.ReadRawLineBack()
Reads a line of text back in from the file and returns it. This enables you to
read in lines from text files and use them in your game.
NOTE: this command can only read back plain text lines from text files. If you
attempt to use it with binary files or files written with commands like WriteString,
WriteInt, etc then the results are unpredictable.
Example:
File *input = File.Open("error.log", eFileRead);
if (input != null) {
while (!input.EOF) {
String line = input.ReadRawLineBack();
Display("%s", line);
}
input.Close();
}
will display the contents of the 'error.log' file, if it exists
See Also: File.WriteRawLine
|