Hi, Following is the code for How to read file content through .net?
Offshore Outsourcing Software Development Company::Web Application Development::Ecommerce Web Site Design Solution
public String ReadFileContent(FileSettings file)
{
FileStream fs = new FileStream(file.FilePath,FileMode.Open,FileAccess. Read);
StringBuilder output = new StringBuilder();
StreamReader r = new StreamReader(fs);
r.BaseStream.Seek(0,SeekOrigin.Begin);
String fContent="";
while (r.Peek() > -1)
{
fContent = fContent + r.ReadLine();
}
r.Close();
return fContent;
}
-------------------------------------
Offshore Outsourcing Software Development