Appending text information to a text file at a certain spot without overwriting old information (C)

后端 未结 3 1070
感动是毒
感动是毒 2020-12-22 09:29

So I have a txt file that looks like this:

112 12.50 Y 15

267 7.75 N 20

382 15.50 N 45

User is prompted where he wants to insert

3条回答
  •  半阙折子戏
    2020-12-22 09:45

    The only option that you have to add information in the middle of a file without overwriting old data is to move manually all the data following the position where you want to add into the file.

提交回复
热议问题