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] tag 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.
[Var:'File'=(File: 'myfile.txt', File_OpenRead, File_ModeLine)]
[$File->(Read: 1)]
[$File->(SetPosition: 5)]
[$File->(SetMode: File_ModeChar)]
[$File->(Read: 16)]
[$File->Close]
Tag Link | [File->SetMode] | Category | File |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 7.0 |
Output Type | None | Security | File |
Implementation | Sets | Lasso 7.0 |
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft