public void SaveCar(Car car) { using (StreamWriter sw = File.AppendText(path)) { string carInfo = car.GetCarInfo(); sw.WriteLine(carInfo); } }