Delete part of a file in C
问题 How can I create a function to delete certain part of a file? For example, the file is: -. Chair: A23 Number: 123 Name: Joshua -. Chair: B12 Number: 512 Name: Marcus -. Chair: C2 Number: 1 Name: Drake If the input is B12 Then the file shall become -. Chair: A23 Number: 123 Name: Joshua -. Chair: C2 Number: 1 Name: Drake I need this function for my program to work, but I have no idea how can I do that. 回答1: Open a new file in the same directory as the original file. Write to that file what you