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.
using System.IO;using System.Runtime.CompilerServices;using Workshop3.Exceptions;using static System.Net.WebRequestMethods;namespace Workshop3.IO{ public class TextFileReader { }}
using System.IO;using System.Runtime.CompilerServices;using Workshop3.Exceptions;using static System.Net.WebRequestMethods;namespace Workshop3.IO{ public class TextFileReader { }}