Bug writing/reading to file.

2007-12-24 Thread arne . k . h
Hi! :) Im new to python, and I have made a electronic diary - its just a task. Here is the code: http://pastebin.com/m49391798 The bug is (feel free to download and test it) that i can't see what i wrote in the diary without restarting the program. Here is an example: 1: I start the program 2:

Re: Bug writing/reading to file.

2007-12-24 Thread Guilherme Polo
2007/12/24, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi! :) Im new to python, and I have made a electronic diary - its just a task. Here is the code: http://pastebin.com/m49391798 The bug is (feel free to download and test it) that i can't see what i wrote in the diary without restarting the

Re: Bug writing/reading to file.

2007-12-24 Thread Arne
On Dec 24, 12:53 pm, [EMAIL PROTECTED] wrote: Hi! :) Im new to python, and I have made a electronic diary - its just a task. Here is the code:http://pastebin.com/m49391798 The bug is (feel free to download and test it) that i can't see what i wrote in the diary without restarting the

Re: Bug writing/reading to file.

2007-12-24 Thread Lars Johansen
text.txt is only read when you open the file, that means that your read statement, doesnt now of what has been written to the file, since it was opened.. under if if option == 1: you should add, then it will be re-read for every read abc = open('text.txt')