LassoScript Utility
Basics Browse Detail


Tag Link [File_StreamCopy] Category File
Type Process Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type None Security File
Implementation LassoScript Sets Lasso 8.5


[File_StreamCopy] copies a file using a buffered approach which allows it to work with very large files without consuming excessive amounts of memory. This tag should be used any time the file size is larger than the available RAM.


[File_StreamCopy: -Source'sourcefile.txt', -Destination='destinationfile.txt', -FileOverWrite]


Required Parameters
-Source The path to the source file for the copy.
-Destination The path to the destination file name or destination folder for the copy.
Optional Parameters
-Buffer The buffer size in bytes. Defaults to 32768.
-FileOverWrite If specified then a file by the same name in the destination will be overwritten.


See the Lasso 8 Language Guide for examples of how to use this tag.