Thus spake [EMAIL PROTECTED] ([EMAIL PROTECTED]): > Hey guys, > > I can't figure this one out, why is this simple script giving me > problems? > > logfile=file(r'test.txt','w') ^^^
You've opened the file in write mode. To read from the file, you'll have to reopen it in read mode ("r"). Also, if the file you're dealing with really is a log file, you probably want don't want to open it in write mode for writing information either, since that will truncate the file and lose previously logged information. Try append mode ("a") instead. Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Off: (02) 9283 1131 Mob: 0419 492 863 -- http://mail.python.org/mailman/listinfo/python-list