Remove lines from a file: Difference between revisions
m
Fix Python solution [for case when the file does not ends with a newline] to prevent removing last character of the file
MaiconSoft (talk | contribs) (Added Delphi example) |
Alextretyak (talk | contribs) m (Fix Python solution [for case when the file does not ends with a newline] to prevent removing last character of the file) |
||
Line 2,351:
pass
else:
print line
fileinput.close()</lang>
|