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