FIFO File writing

From: Kirsten (stefanklauer_at_gmx.de)
Date: 08/26/04


Date: Thu, 26 Aug 2004 02:49:52 +0200

Hi @all,

This night I searched the whole internet... and I cannot believe that there is no possibility the write to a file "first in -
first out"? Well, how to implement a file logging system? How to implement history file writer?

I want to add a new line at the end of my log file, after that the first line should deleted, so my file cannot get bigger and
bigger. Working in memory this data structure would be called queue. But I want/need it for files (immediate physical saving).

I don't want to write circular either, so I don't want to start at the beginning of the file again... (I found some
implementations doing this).

Why can the file system reset the end of a file (EOF), but not the beginning?

Have I forgot something? Are there any functions which can help? How can FIFO File writing being realized?

(BTW I'm working with WinXP)

Greetings,
Kirsten