ReadString
Usage:
ReadString(Handle)
Description:
The ReadString reads a string (four bytes plus string length) from the current file position and returns the string text. The file position is then advanced to where the string ends in the file.
The Handle parameter is the file handle returned by ReadFile, WriteFile or OpenFile.
Example:
Function Main()
F = ReadFile("Test.dat")
FileData = ReadString(F)
Output(Actor(), "First string value: " $+ FileData)
CloseFile(F)
Return()
End Function
Comments (0)
You don't have permission to comment on this page.