OK... so I just wrote a small test app in C# to fiddle around with this.
It works, but probably not graceful. and like John said above, my end point would not take into consideration any lines that occur in the same minute before the next minute. So I need to fix that.
here is the snippet. I would appreciate any feedback.
private void button1_Click(object sender, EventArgs e)
{
string dataRow = "";
string startdate = "Feb 5 01:10:";
string enddate = "Feb 5 04:15:";
try
{
TextReader tread = new StreamReader("acutemp.log");
TextWriter twrite = new StreamWriter("newtemp.txt");
while (true)
{
dataRow = tread.ReadLine();
if (dataRow.Contains(startdate))
break;
else
continue;
}
while ((dataRow = tread.ReadLine()) != null)
{
twrite.WriteLine(dataRow);
if (dataRow.Contains(enddate))
break;
}
tread.Close();
twrite.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
[edit]Code block added to preserve formatting - OriginalGriff[/edit]