> Although w+ should have worked, too. Even if the messages were written to No, you cannot write a file backwards. "w+" (file pointer at the start) means that everytime you write, the file is overwritten). It is okay if you want the most recent entry from the log. Unfortunately somehow it alway was a left "\n", though, so you got an empty file. Tamas