private void ReadFile() { List <string[]> toRead = ReaderWriter.readFile(fileName); foreach (string[] point in toRead) { NotifyDataAdded(point); //push the information to the queue data.Enqueue(point); if (timesPerSecond != 0) { Thread.Sleep(1000 / timesPerSecond); } else { break; } } }
public void Save(string[] toSave) { ReaderWriter.WriteFile(fileName, toSave); }