Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
string fileInQuestion;
string[] fileNames;
fileNames = Directory.GetFiles(@"C:\folder");
Sort(fileNames);
fileInQuestion = fileNames[fileNames.Length - 1];
//You will need to write the sort function
//if you know the date
string dateNeeded;
foreach(string filename in fileNames)
{
if(filename.Contains(dateNeeded))
fileInQuestion = filename;
}
StreamReader fileReader = new StreamReader(fileInQuestion);
string line, findMe;
while(fileReader.Peek() > 0)
{
line = fileReader.Readline();
if(line.Contains(findMe))
//Do Something
}