public void LoadData(string fileName) { var buffer = System.IO.File.ReadAllLines(fileName); foreach (var item in buffer) { var temp = item.Split(','); VX.Add(double.Parse(temp[0])); VY.Add(double.Parse(temp[1])); } }