public void readLog() { StreamReader sr = new StreamReader("LogFile.txt"); string readData = String.Empty; LoggedData.Clear(); while (sr.EndOfStream != true) { readData = sr.ReadLine(); if (readData != null) { LoggedData.Add(readData); } } sr.Close(); }
public void ClearData() { LoggedData.Clear(); Intervals.Clear(); Timestamps.Clear(); }
public void Dispose() { LoggedData.Clear(); }
public void clearLogFile() { LoggedData.Clear(); File.WriteAllText("LogFile.txt", String.Empty); }