more files

Terry Reedy tjreedy at udel.edu
Sat May 31 10:05:29 EDT 2003


Please post plain text instead of html.  With Outlook Express, at least, it is impossible to respond properly (after the quoted original text).  Next, read the tutorial and then the relevant parts of the Manuals.  In particular, in the Lib Reference. the sections on file objects and the os module.  While doing so, experiment with statements using the interactive interpreter.

tjr
  "Darren Teo" <darrenteo82 at yahoo.com> wrote in message news:mailman.1054385749.10667.python-list at python.org...
  Hey how would i do this if i have to write a list of strings into a "oldfile1" and deleting the "oldfile" before renaming the "oldfile1" to the "oldfile" ...... i hope i am making sense here ..... thanks

              # eg. filename is named oldfile #
  def writelines(filename, lines)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030531/efaf8139/attachment.html>


More information about the Python-list mailing list