File I/O?

This might not be the forum for this question, but seeing that this is the only one I know with answers involving Python scripting:

What functions are there to input/output text/binary files? What are their prototypes?

Point of file i/o is because I want to be able to save a game in-progress… I imagine that storing various variables and even the information stored in the Scene Graph is easy enough to dump to a file and then parse back in… it’s now a matter of knowing HOW to write data to a file that’s cross-platform compatible.

From the Python manual section 7.2 in the Tutorial section:

Also see the Python manual for the pickle and cPickle modules.

David