+ 1
How can i remove specific lines from a file
5 Réponses
+ 2
with open(<file>) as my_file:
lines = my_file.readlines()
lines.pop(<whatever line num>)
with open(<file>, 'w') as update:
update.writelines(lines)
+ 1
It does, cause I've done it. You haven't posted your own code once....
0
Thanks i will try this
0
Unfortunately it didn't work
0
Well ,I think i will try it again .. thank you anyway