ReadFile
Usage:
ReadFile(Name)
Description:
The ReadFile command opens a file as read-only, and returns a handle to it for use with the file reading commands. All files are stored in the Data\Server Data\Script Files\ folder. Make sure to call CloseFile after you are finished with the file, to prevent memory leaks.
Name is the filename (e.g. "Data" or "MyFile.txt").
Example:
Function Main()
F = ReadFile("Test.txt")
FileData = ReadLine(F)
Output(Actor(), FileData)
CloseFile(F)
Return()
End Function
Comments (0)
You don't have permission to comment on this page.