Prog 1.  File Encryption:  File encryption is the science of writing the contents of a file in a secret code.   Your encryption program should work like a filter reading the contents of one file, modifying each character in the input file into a code, and then writing the coded characters out to a second file.  The second file will be a version of the first file but written in a secret code. In Notepad or something similar, you will create a file with text in it.  It should be several lines long.  Your program should read the file character by character and make some change to the character before writing that character to a second new encrypted file.     See program 13-8 to see how to read and write one character at a time. You may come up with an encryption technique of your own or use something simple like adding 10 to the ASCII code of each character in the file before it is written to the second file.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 2E: Create a program named FileComparison that compares two files. First, use a text editor such as...
icon
Related questions
Question

Prog 1.  File Encryption:  File encryption is the science of writing the contents of a file in a secret code.   Your encryption program should work like a filter reading the contents of one file, modifying each character in the input file into a code, and then writing the coded characters out to a second file.  The second file will be a version of the first file but written in a secret code.

In Notepad or something similar, you will create a file with text in it.  It should be several lines long.  Your program should read the file character by character and make some change to the character before writing that character to a second new encrypted file.     See program 13-8 to see how to read and write one character at a time.

You may come up with an encryption technique of your own or use something simple like adding 10 to the ASCII code of each character in the file before it is written to the second file. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning