highscores list

Samuel newsgroups at debain.org
Sat Dec 8 15:57:23 EST 2007


On Sat, 08 Dec 2007 13:32:08 -0500, Shawn Minisall wrote:

> I'm writing a game that uses two functions to check and see if a file
> called highScoresList.txt exists in the main dir of the game program. If
> it doesn, it creates one.  That part is working fine.  The problem is
> arising when it goes to read in the high scores from the file when I
> play again.

Not your original problem, but you should want to look at this instead of 
creating yet another parser:

http://docs.python.org/lib/RawConfigParser-objects.html

-Samuel



More information about the Python-list mailing list