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

1 Answer

0 like 0 dislike
answered by (474k 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:

10.2k questions

9.2k answers


3.2k users


Free Hit Counters