Sets the file read mode for the connection. This can be File_ModeLine for reading a file line by line, or File_ModeChar for reading a file character by character. Defaults to File_ModeChar if not specified.
File Variable->SetMode(Read Mode)
Use the [File->SetMode] method to change the read mode. The example below starts in File_ModeLine mode, reads the first line of myfile.txt, moves to line five, changes to File_ModeChar mode, and then reads the next 16 characters.
local(file = file('myfile.txt', File_OpenRead, File_ModeLine) #file->Read(1) #file->SetPosition(5) #file->SetMode(File_ModeChar) #file->Read(16) #file->Close
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.