Linking to C/C++ (Cont.)


Code Example—Encrypting a File
The following program reads a file, encrypts it, and writes the output to another file. It includes three files: To run this program from a command prompt, pass the names of the input and output files, for example,

 Encrypt  infile.txt outfile.txt

Some of the following C++ commands are used in the program:





      “I’m not arguing, I’m just explaining why I’m right.”    
      ― Unknown