How do I save the contents of a text buffer

Steven D'Aprano steve at REMOVE.THIS.cybersource.com.au
Sun Feb 18 01:22:52 EST 2007


On Sat, 17 Feb 2007 17:19:06 -0800, google wrote:

>> 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

Well, duh. I know that -- that's what your first email said.

Don't tell us there's a problem. Tell us what the problem is. Duh.


>> Did you get something unexpected in the file? Maybe an empty file?
> 
> Yes, a rabbit popped out of the floppy slot - amazing!

You know how your teachers said "there are no stupid questions, only
stupid answers?" They lied.

Perhaps you should go away and read this before asking any further
questions.

http://catb.org/esr/faqs/smart-questions.html



>> I'm guessing... it erased your hard disk. Do I win?
> 
> Sorry, you lose....are you a Windows user?


Sorry, you lose.

I really don't know why you're casting aspersions on the intelligence of
Windows users, when you're the one posting a stupid question. Do I really
need to spell it out? 

We can't tell you what the solution to the problem is if you won't tell us
what the problem is. If you get an exception, post the exception. If
something unexpected happens, tell us what it was. We're not mind-readers.


-- 
Steven.




More information about the Python-list mailing list