0

Delete Specific Data from the File

I want To delete the data from with Id number Check my code i used the logic that work For all lines in the code but it cannot delete the first row in a file https://code.sololearn.com/cHh66c9W24HC/?ref=app Although there is some better way too delete specific data from the file plz tell me

6th Jun 2020, 11:01 AM
Saad Saleem
Saad Saleem - avatar
7 odpowiedzi
+ 1
Martin Taylor thank you so much
6th Jun 2020, 6:36 PM
Saad Saleem
Saad Saleem - avatar
6th Jun 2020, 11:31 AM
Saad Saleem
Saad Saleem - avatar
0
What Martin Taylor said!
6th Jun 2020, 4:17 PM
Schindlabua
Schindlabua - avatar
0
Martin Taylor Schindlabua thnks guys if my code works I will inform you
6th Jun 2020, 4:26 PM
Saad Saleem
Saad Saleem - avatar
0
Martin Taylor I don't know How To delete a file and rename a file?
6th Jun 2020, 4:29 PM
Saad Saleem
Saad Saleem - avatar