Lasso Soft Inc. > Home

[File->Get]

Returns a single byte (character) or line depending on the file's read mode. Always returns the next character or line from the current file position, which can be explicity set using the [File->SetPosition] tag. Can be used sequentially to return multiple characters or lines in order. Note that each line returned does not end with a return or newline character.

  • Syntax
  • Parameters
[File Variable->Get]
Examples

To retrieve a single line from a file:

Use the [File->Get] tag. The following example reads the first three lines in the myfile.txt file and returns them sequentially.

[Var:'File'=(File: 'myfile.txt', File_OpenRead, File_ModeLine)]
[$File->get]<br>
[$File->get]<br>
[$File->get]
[$File->Close]
Tag Link [File->Get] Category File
Type Member Data Source Any
Support Preferred Version 7.0
Output Type String Security File
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, 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. > Home

 

 

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