[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] File Copying



So like "rb", "wb", and"ab"?

On 7/7/07, Richard Jones <richardjones@xxxxxxxxxxxxxxxx > wrote:
On Sun, 8 Jul 2007, Ian Mallett wrote:
> Like how?  file("[Filepath]", "b") is invalid.

% pydoc file

Help on class file in module __builtin__:

class file(object)
|  file(name[, mode[, buffering]]) -> file object
|
|  Open a file.  The mode can be 'r', 'w' or 'a' for reading (default),
|  writing or appending.  The file will be created if it doesn't exist
|  when opened for writing or appending; it will be truncated when
|  opened for writing.  Add a 'b' to the mode for binary files.