Sets the position of the files read/write marker. Requires an integer line or character position (depending on the read mode) as a parameter. All subsequent reads and writes will occur at the given position.
File Variable->SetPosition(Integer)
Characters can be read starting at a set position using the [File->SetPosition] tag before the [File->Read] method. The example below reads 240 characters starting at character number 16.
Code
local(File = File('myfile.txt', File_OpenRead, File_ModeChar))
#File->SetPosition(16)
#File->Read(240)
#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.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments