The [file->delete] method deletes the file located at the current [file] object's path.
local(f) = file(...)
$f->delete
The following example deletes the "myfile.txt" file from its current location.
Code
var(file) = file('myfile.txt')
$file->delete
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
The syntax example:
local(f) = file(...)
should read:
var(f) = file(...)
Posted on: 19 February 2013