✅ Reading a file
Problem description:
In the file TextFileReader.cs (in the folder IO), you will find a code skeleton for the class
TextFileReader. Implement the functionality to read text from a text file. It should be possi-
ble to use the class from a client (another class), where the client can enter a path to the text file,
where the file’s content is returned to the client. In the folder files (in Solution Explorer ), there
is a text file textfile.txt containing some rows of text. The relative path to this file (from the
code) is files/textfile.txt.
How do i go about solving this?
In the file TextFileReader.cs (in the folder IO), you will find a code skeleton for the class
TextFileReader. Implement the functionality to read text from a text file. It should be possi-
ble to use the class from a client (another class), where the client can enter a path to the text file,
where the file’s content is returned to the client. In the folder files (in Solution Explorer ), there
is a text file textfile.txt containing some rows of text. The relative path to this file (from the
code) is files/textfile.txt.
How do i go about solving this?
