This sample demonstrates how to encode a file using different kinds of encoding methods.
Project path: Samples\Visual C++ 6-7\Encode
Project file name: Encode.dsp
Properties: EndOfLineType, MaxLineLength, EncodingFormat, DataFormating, HeaderDataForkLength and HeaderResourceForkLength from the various Encoding format interfaces.
Method: ReadFile and ProcessFile
This sample is a console application that takes at least one parameter (the source file name) to perform encoding. The sample's command-line usage specifications are:
Encode [options] input_file [output_file]
The parameters between brackets are optional. The option parameter can be used to specify the encoding method, the end of line type and the max line length. If omitted, these options are set to UUEncoding, CRLF and 78 characters respectively. If the output file name is omitted, the encoded output is sent to the screen.