Question:
How would you acess the eleemts of a text file
Author: Will ParkerAnswer:
String filename = "FILENAME.txt"; StreamReader sr = new StreamReader(filename); while ((line = sr.ReadLine()) != null) { line = each line of text file } sr.Close();
0 / 5 Â (0 ratings)
1 answer(s) in total