alvin murphy
Posts: 4
Nickname: amurphy
Registered: Oct, 2004
|
|
Re: writing string variable to file
|
Posted: Oct 22, 2004 5:07 PM
|
|
Thanks for the tip about not having to close the file twice or each time I write to it. These are certainly baby steps, and I would never imagine a program that would write to a file and immediately read from it; I imagine the "reading" would occur much later, perhaps via word processor, with formatting etc.. Anyway I still do not understand your answer. Pardon if I use the wrong terminology, but I know my "write" statements are working because I can manually open myfile after the the little program has run and find the text; what I do not understand is why the "read" statement or command does not produce any text on the GUI screen when the whole thing is run as a module from the editor. in other words, it runs all the commands or statements including the raw_input, open, close, write, but not read. Thanks again.
|
|