getting strings from a txt file

Dnsgm

Baseband Member
Messages
61
I have a .txt file and I'm not sure how to string copy the strings in the file. Any ideas?
 
In which language? With Java you can use the BufferedReader and StringTokenizer classes.

I would read from the file and store the strings into an array.
 
In C# you can do something like
Code:
String path = (@"C:\myTextFile");
Public StreamReader sr = new StreamReader(path);
String myString = (sr.ReadLine);
I'm not positive on that though so look it up on MSDN
 
Back
Top Bottom