Hallo,
Ik heb de volgende vraag in VB.net:
You need to read the entire contents of a file named Questions.txt into a single string variable. How could you accomplish this?
Volgens mij kan ik hiervoor de file class gebruiken met methode File.ReadAllText(). Hierbij wordt rechtstreeks de gehele inhoud in een string geplaatst en de file afgesloten. Of moet ik toch gebruik maken van een filestream?
Ik heb de volgende vraag in VB.net:
You need to read the entire contents of a file named Questions.txt into a single string variable. How could you accomplish this?
Volgens mij kan ik hiervoor de file class gebruiken met methode File.ReadAllText(). Hierbij wordt rechtstreeks de gehele inhoud in een string geplaatst en de file afgesloten. Of moet ik toch gebruik maken van een filestream?