EnDeCode.FileEncode

EnDeCode.FileEncode($inputfilename, $outputfilename)
This method encodes a text file.

Parameters
Name Summary
$inputfilename file to encode, plain text file
$outputfilename file to output


Returns
nothing

ex)
# new instance
$encoder = new EnDecode;
# initialize with key string
$encoder = $encoder.Initialize("abcde");
# encode
$encoder.FileEncode("c:\temp\test.txt", "c:\temp\test.txt.txt");
# new instance
$decoder = new EnDecode;
# initialize with incorrect key string
$decoder = $decoder.Initialize("abc");
# fail to decode
$decoder.FileDecode("c:\temp\test.txt.txt", "c:\temp\test.txt.txt.txt");
# initialize with correct key string
$decoder = $decoder.Initialize("abcde");
# succeed to decode
$decoder.FileDecode("c:\temp\test.txt.txt", "c:\temp\test.txt.txt.txt");

Last edited Mar 2, 2013 at 12:54 PM by Tom__S, version 2

Comments

No comments yet.