Goto:
4C Home
|
4C Docs
|
System PCLs List
sys.encode_file()
sys.encode_file()
Purpose:
-
sys.encode_file() encodes the <fromfile> using the specified <encodingmethod> to <tofile>
Usage:
-
-
ret = sys.encode_file(<fromfilename>,<tofilename>,<encodingtype>);
Arguments:
-
alpha <fromfilename> - the full pathname of the file you are reading unencoded data from.
-
alpha <tofilename> - the full pathname of the file you are writing the encoded data to.
-
integer - <encodingtype> - This must be one of ENCODE_NONE, ENCODE_BASE16, or ENCODE_BASE64
Returns:
-
0 - File was encoded successfully.
-
< 0 - Some Error
Where Used:
-
sys.encode_file() can be called from anywhere.
Example:
-
Description:
-
sys.encode_file() encodes the <fromfile> using the specified <encodingmethod> to <tofile>
The <fromfile> is not modified by sys.encode_file.
Requirements
-
Requires version 5.0 or higher of 4csrvr.
Bugs/Features/Comments:
-
-
See Also:
-
sys.encode_file()
-
sys.decode_file()
-
sys.encode_text()
-
sys.decode_text()
Back to Top