Re: open() mode args
thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: open() mode args
On Wed, 26 Jan 2011 11:32:03 -0500, mpnordland wrote: > What is the correct file mode to pass to open() when I want to both read > and write on the open file? open("filename", "r+") for text mode, "r+b" for binary mode. If your operating system does not distinguish between the two, you can use e