Hi Jyotshnad,
Ya its possible.But first you can read full text file and then to get particular line value.
using System.IO;
Private string ReadTextFile(int nReadLine)
{
int nCount=0;
string sOutput=sting.Empty;
using (StreamReader sr = new StreamReader("C:\\SampleFile.txt"))
{
string line;
while ((line = sr.ReadLine()) != null)
{
nCount++;
if(nCount==nReadLine)
sOutput=line;
}
}
return sOutput;
}
I hope this code useful to you.
Cheers :)