Files: 1. Write a program in C++ to create and store information in a text file. 2. Write a program in C++ to create and
Posted: Mon Jun 06, 2022 12:54 pm
Files: 1. Write a program in C++ to create and store information in a text file. 2. Write a program in C++ to create and store information in a text file. 3. Write a program in C++ to write multiple lines in a text file. Test Data : Input the number of lines to be written : 4 :: The lines are :: test line 1 test line 2 test line 3 test line 4 Expected Output: The content of the file test.txt is: test line 1 test line 2 test line 3 test line 4 4. Write a program in C++ to read the file and store the lines into an array. 5. Write a program in C++ to Find the Number of Lines in a Text File.