5 filenames
= sys
.argv
[1:]
8 open ("%s~" % fn
, "w").write (open (fn
, "r").read ())
12 contents
= open (fn
, "r").read ()
13 lines
= contents
.split ('\n')
14 with
open (fn
, "w") as fobj
:
17 fobj
.write ("%s\n" % line
)
18 contents
= open (fn
, "r").read ()
20 while contents
[-1] in " \t\r\n":
21 contents
= contents
[:-1]
22 open (fn
, "w").write ("%s\n" % contents
)