Lasso Soft Inc. > Home

[ file->isOpen ]

Method

The [file->isOpen] method returns true if the [file] object has an open connection to a file, otherwise it returns false.

  • Syntax
local(f) = file(...)
#f->isOpen
Examples
  • Beginner

Tracking a file's status

The code below shows the result of calls to [file->isOpen] at various times in the life of the [file] object

Code

local(my_file) = file('/rhino/test.txt')
#my_file->isOpen
#my_file->openRead
'<br />'
#my_file->isOpen
#my_file->close
'<br />'
#my_file->isOpen

Result

false
true
false

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