The [file->asString] method returns a string representation of the [file] object. If you haven't actually done anything but initialize a [file] object, all you will see is 'File: ', but once the file has been opened / used, it will append the file descriptor to the output.
local(f) = file(...) #f->open #f->asString
The code below demonstrates the difference between calling
[file->asString] before you use or open the file and after you open or use the file.
local(styles) = file('/css/style.css') #styles->asString '<br>' #styles->openRead #styles->asString
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