Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
1 つの値の例 'm' を txt ファイルに書き込み、次回は新しい値を書き込んでから、txt のすべての値を消去して新しい書き込みを行いたいと考えています。
例 :
'm' を保存します m.txt に書き込みます 次回は txt ファイルに書き込みます txt ファイルの値 'm' を削除し、新しい値の例 'n' を書き込みます
(任意のプラットフォーム) 以前のファイル (存在する場合) を削除し、再度作成します。