私は大学のプロジェクトでこれを行っていて、問題に遭遇しました。ファイルから複数の行をロードすることはできましたが、それらをファイルに保存することはできません。単一の文字列をファイルに保存できます。これは、最後に処理された文字列ですが、それだけです。ループを実行することで完全に間違っている可能性がありますが、他の方法は考えられません。savefile セクションのコーディングは次のとおりです。
    case "s":
    case "8":
        {
            int savecount = 0;
            string savestring = "";
            //Clear the text file ready to be saved
            using (FileStream fs = File.Create("billing.txt"))
            {
            }
            while (savecount != CustomerCount)
                {
                    using (StreamWriter save = new StreamWriter("billing.txt"))
                        {
                //Create the string to save to the file
                            savestring = CustomerNumber[savecount] + ","
                              + CustomerName[savecount] + ","
                              + Address[savecount] + ","
                              + RateScheme[savecount] + ","
                              + PeakKWH[savecount] + ","
                              + OffPeakKWH[savecount] + ","
                              + StandardKWH[savecount];
                            Console.WriteLine(savestring);
                            save.WriteLine(savestring);
                            savecount++;
                            Console.ReadLine();
                          }
                 }
            Console.WriteLine("All data saved successfully");
            Console.ReadLine();
            break;
        }
ここからどこへ行くべきかわからない。どんな助けでもいただければ幸いです