"jam1991" <jordanmeyer1...@gmail.com> wrote in message news:c0c76bc4-8923-4a46-9c36-6e1a0375f...@l11g2000yqb.googlegroups.com... [snip] > they sign into the program with; however, this information doesn't > appear in the file until after the program has closed. This poses a > problem for retrieving the up-to-date statistics data during the same > session. Is there anyway I can fix this? I'm using .write() to write [snip]
.flush() ? >From http://www.tutorialspoint.com/python/file_methods.htm file.flush() Flush the internal buffer, like stdio's fflush. This may be a no-op on some file-like objects. Charles -- http://mail.python.org/mailman/listinfo/python-list