Lasso Soft Inc. > Home

[ file->setmode ]


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.

  • Syntax
File Variable->SetMode(Read Mode)
  • Beginner

To reset the read mode during file operations:

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)

Recent Comments

No Comments found

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.

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft