Don't know if this is what you want... fileName is the file you want to read...
string s = String.Empty;
string[] words = new string[]{};
FileStream fs = new FileStream(fileName, FileMode.Open);
using(StreamReader sr = new StreamReader(fs))
{
while(sr.Peek() > 0)
{
s = sr.ReadLine();
words = s.Split('\t');
}
}
fs.Close();
|