fsFileReadString (Function) |
Top Previous Next |
This reads a string from a FILE - starting from the location set by the data pointer (fsFileSeek). The length of the string will either be the maximum string length as defined by the STRING variable or a carriage return value (0D hex or 13 decimal) followed by a new line value (0A hex or 10 decimal). After each successful read operation, the file data pointer is automatically incremented
Input: fd : FILE FILE descriptor for the file retrieved from fsFileOpen or fsFileCreate.
Returns: STRING The string read. Or an empty string if none is present.
Declaration: FUNCTION fsFileReadString : STRING;
Example: ... |