How do I save the contents of a text buffer
google at orcon.net.nz
google at orcon.net.nz
Sat Feb 17 20:19:06 EST 2007
On Feb 18, 1:14 pm, Steven D'Aprano
<s... at REMOVE.THIS.cybersource.com.au> wrote:
> On Sat, 17 Feb 2007 15:47:20 -0800, google wrote:
> > As a test, I tried to write the buffer back to a file with this code
> > but did not work,
>
> Oooh, guessing games! I love guessing games!
Good
> Let me see... did it reboot your PC?
No
> Did Python crash?
No - it runs on nix
> Did you get an exception? Maybe something about not being able to open
> the file for reading? Or perhaps disk full?
File read ok for input, its the file write thats the problem
> Did you get something unexpected in the file? Maybe an empty file?
Yes, a rabbit popped out of the floppy slot - amazing!
> I'm guessing... it erased your hard disk. Do I win?
Sorry, you lose....are you a Windows user?
> --
> Steven.
More information about the Python-list
mailing list