Chapter 13 Exploring Text Files and String Processing 337
Encrypt text by changing ASCII codes
- Close the Sort Text project, and then open the Encrypt Text project located in the
C:\Vb10sbs\Chap13\Encrypt Text folder. - Click the Start Debugging button to run the program.
- Type the following text, or some text of your own, in the text box:
Here at last, my friend, you have the little book long since expected and
promised, a little book on vast matters, namely, βOn my own ignorance and that
of many others.β
Francesco Petrarca, c. 1368
The resulting application window and text look something like this:
- On the File menu, click the Save Encrypted File As command, and then save the file in
the C:\Vb10sbs\Chap13 folder with the name Padua.txt.
As you save the text file, the program scrambles the ASCII code and displays the results
in the text box shown here: