1.A program to demonstrate the writing of a set of lines to a specified file, namely, “text.dat”.
2.A program to illustrate the writing of a set of lines to a user-defined file where name of the file is specified in the user-defined mode.
3.A program to read a set of lines from the keyboard and to store it on a specified file.