I have "C:\IdsLogs" folder , when i execute my certain code , it generates the "Response.txt"
so i have number of Response.txt files , i want to access last Response.txt file , how to read it in string , How to write code for it?
How to read text file in a single string
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted May 12, 2014, 7:13 AM EDT
string text = System.IO.File.ReadAllText(@"C:\IdsLogs\Response.txt");
Abhay ShankerRank #375 · 6.7K reputationPosted May 12, 2014, 8:32 PM EDT
var openedFiles = from fName in Directory.EnumerateFiles(dir, "*.txt")
orderby File.GetLastAccessTime(fName) descending
select new FileInfo(fName);
if (openedFiles.Any())
{
var lastOpenedFile = openedFiles.First();
}
http://stackoverflow.com/questions/12067733/opening-most-recent-txt-file
Anuradha Chavan29 reputationPosted May 12, 2014, 10:48 PM EDT
Asp.net family tree how can we create family tree view like other geneology sites for example, geni.com without using flash with asp.net ,c# and SQL 2005. Which web control I can use to do that for website and . please somebody help ASAP Thank you. Anuradha