File IO of String Data

Understand the file handling of strings data in C++.

Challenge

Write a program to write strings into a file called STRINGS.TXT. Read the same file back and display the contents read on the screen.

Sample run

root@educative:/usr/local/educative# g++ main.cpp 
root@educative:/usr/local/educative# ./a.out

You
...
Access this course and 1400+ top-rated courses and projects.