Birsu
✅ C Sharp help
you mean in the method i use static string ReadTextFromFile(string filePath)
{
string text; string filePath = "C:\MyFiles\MyTextFile.txt"; using (StreamReader reader = new StreamReader(filePath)) { text = reader.ReadToEnd(); } return text; }
string text; string filePath = "C:\MyFiles\MyTextFile.txt"; using (StreamReader reader = new StreamReader(filePath)) { text = reader.ReadToEnd(); } return text; }
79 replies
✅ C Sharp help
I still don't understand what to write for input i have to use StreamReader sr so i don't change it and I don't really understand what to write inside the ReadTextFromFile method for calling the method in the main method because StreamReader is involved I'm confused and I can't
79 replies