0 like 0 dislike
1 view
asked ago in Computer Science by (376k points)
Write a program that reads a file and then writes its contents to another file.

1 Answer

0 like 0 dislike
answered ago by (376k points)
If the file program.txt is not found, this program prints error message.

If the file is found, the program saves the content of the file to a string c until '\n' newline is encountered.
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute:

8.5k questions

7.6k answers

23 comments

3.2k users

Categories

Free Hit Counters
...