Lasso Soft Inc. > Home

[ file->moveTo ]

Method

Moves the file to the new path. Requires a path on the local server as a parameter.

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

To move a file to a different folder:

Use the [File->MoveTo] method. The following examples moves the local myfile.txt file to a different to folder on a Mac OS X hard drive.

Code

local(File = File('myfile.txt', File_OpenRead, File_ModeChar))
#File->MoveTo('///Library/WebServer/Documents/myfile.txt')
#File->Close

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