private static IEnumerable<string[]> GetLineText(string FilePath)
{
using (StreamReader rdr = new StreamReader(FilePath))
{
string line;
while ((line = rdr.ReadLine()) != null)
{
// in this case data in flat file are separated by pipe("|").
yield return line.Split('|');
}
}
}
Thanks,
Debata