Hello everyone! I am not a newbie but an intermediate microprocessor programmer and aim to at least master some of the codes, specifically in Arduino. Here is my question regarding the subject:
How can I delete a line of data inside the file, display the data on the LCD I2C, and then delete it after a button is pressed? Another data will redo the loop until all the data inside the file is empty, but the file still remains.
Since we can print data inside the file using myFile.println(" "), I believe we can also remove data.
This is the example file:

File name: games.txt
data:
Basketball
Volleyball
Soccer
Baseball
Softball
Football
Sepak Takraw
Thank you so much.