e-CryptIt Engine Xojo Plugin |
|
YEncEncoder.EncodeToFile Method
To create a single part yEnc file use the EncodeToFile function.

EncodeToFile(
source
as FolderItem,
destination
as FolderItem)
as Boolean
Parameters
- source
- The file to encode into a yEnc file.
- destination
- The location and the name of the destination file.
Returns
- Boolean
Remarks
Returns True if it was successful, false if not. Use the LastError property to determine which error occured.
Always create a new instance of the YEncEncoder class for each file to encode.
Possible errors that this function can generate:
0 No Error.
-1001 Source file was nil.
-1002 Could not open source file.
-1003 Destination file was nil.
-1007 Destination file allready exists.
-1602 Could not open or create the destination file.
-10100 Unknown internal error.
See Also
YEncEncoder Class