Lasso Soft Inc. > Home

[ file->open ]

Method

Opens a new connection to a file. Requires the name and path to a file as a parameter. Optional parameters may include an open mode and read mode, as in the [File] method. The open mode and read mode set in the initial [File] method call are used by default.

  • Syntax
File Variable->Open('/folder/file.txt')
Examples
  • Beginner

To open a new file:

Use the [File->Open] method. The following example closes the connection to the myfile.txt file, and opens a new connection to a file named otherfile.txt.

Code

local(File = File('myfile.txt', File_OpenRead, File_ModeChar)
#File->Open('otherfile.txt', File_OpenReadWrite)

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