LassoScript Utility
Basics Browse Detail

[File_StreamCopy]

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

Description

[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.

Syntax

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

Parameters

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.

Examples

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