openfilestream("data/filepath/file.txt");
-opens a text file and returns the index that other functions can use to access it. Indexes are assigned in order of creation, from 0 to the maximum number of filestreams (currently 20).
getfilestreamline(int index);
-Returns the current line of the file as a string, cutting it off if it's larger than the maximum string length.
getfilestreamargument(int index, int argumentnumber, string returntype);
-Returns the specified argument at the current position. For example, with this line:
Stringargument 1 3.4
you would get these results:
getfilestreamargument(index, 0, "string") -> Stringargument
getfilestreamargument(index, 1, "int") -> 1
getfilestreamargument(index, 2, "float") -> 3.4
getfilestreamargument(index, 2, "int") 3
filestreamnextline(int index);
-Moves to the next line of the file that has any characters.
getfilestreamposition(int index);
-Returns the current position in the file.
setfilestreamposition(int index, int position);
-Sets the current position. Record a position with getfilestreamposition to go to, or set it to 0 to go back to the beginning of the file.