Text Files

The first type of file that every programmer writes to and reads from is an ASCII text file . A text file is a kind of computer file that is structured as a sequence of lines. Each line is terminated with a special character such as a line feed (LF) in UNIX or a carriage return (CR) and line feed (LF) in MS DOS. I have abstracted the details behind reading and writing files by encapsulating the logic into two classes for your use. The write text file class has…