Hi
Is this function what you're looking for maybee?
using System.IO;
public List<string> ReadTxtFile_ToLst(string txtFilePath)
{
List<string> returnValue = new List<string>();
FileInfo genericFileInfo = new FileInfo(txtFilePath);
StreamReader sr = genericFileInfo.OpenText();
string lineContents;
while (sr.EndOfStream != true)
{
lineContents = sr.ReadLine();
returnValue.Add(lineContents);
}
sr.Close();
return returnValue;
}
Regards ;-)