Birsu
Birsu
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
like this?
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ 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; }
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
for question 2 i change that to Console.WriteLine and for question 3 ok so if i'm write sr.Close(); first and then return sr.ReadLine(); does return part ran even if the file is closed?
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ 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
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
For Question 1 my instructor limited me to use it because i do homework i have to use it
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
so i replace it
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
if i am write at the end its give a warning
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
Am i correctly writing this?
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
ok i did and it works tysm
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
how can i do that?
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
but i want it to write how many characters the message is
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
not the contain characters
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
it directly say what i write
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
oh it works but wrong way
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
ok
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
here i want to get the message from the user the first ReadLine and i create an a value to return that message
79 replies
CC#
Created by Birsu on 12/29/2022 in #help
✅ C Sharp help
or its correct
79 replies