public void ghiFile(ArrayList arrayList) { StreamWriter streamWriter = new StreamWriter(path); foreach (Kho Kho in arrayList) { streamWriter.WriteLine(Kho.ToString()); } streamWriter.Close(); }