0 12

Object Oriented Programming05 marksText file reading and writing

Write a program to read text from keyboard and write it to a file named "test.txt". Again read the content of file and display it in the monitor.

Write a program to read text from keyboard and write it to a file named "test.txt". Again read the content of file and display it in the monitor. [5]

  1. Read text input from the keyboard 2. Write the text to a file named "test.txt" 3. Read back the content from "test.txt" 4. Display the content on the monitor --- --- --- Function Purpose ------------------- fopen("test.txt", "w") Opens file for writing (creates if not exists) fopen("test.txt",...