File based FIFO (first in first out)

Posted on 1998-07-15
Last Modified: 2010-04-04
How can i realize a fast file-based fifo, it means i read the oldest data i wrote in and delete it after reading, new data is written in on the other side of the file structure, new data-- data--data--oldest data
Question by:q064828
  • 3
  • 2

Accepted Solution

ZifNab earned 200 total points
ID: 1357930
Look at freeware QDB of

It's purpose is of using db without DBE.

Actually it is just a file of records, but with most capabilities of DB! Look at it! I think you can use this!



Expert Comment

ID: 1357931
hi q064828,

forgot to mention something. Because it acts like a DB... you can easely add and remove the records fifo. Besides, the beauty of this is that the components are already written. And they are very well written and they are freeware too! What else do you want? Your projects jumps already to the last fase!


Expert Comment

ID: 1357932
If you don't want to go for a DB solution, you can also use the round-robin method, where you allocate a file with f.ex. 100 records and then has 2 pointers, PointerToNextRecordToRead and PointerToNextRecordToWrite (or perhaps with shorter names :-)
When PTNRTW reaches End-Of-File, you just continue at the beginnign of the file.
Just make sure that there is enough room for all records, so that you are not overwriting records you haven't read yet.

Expert Comment

ID: 1357933
Hi Blackman, the beauty of QDB is that is ISN'T a DB it's in fact just a file with the capabilities of a DB. Zif. Look for yourself.

Expert Comment

ID: 1357934
Ok, Zif, I might take a look at it sometime (I think IU've allready downloaded it..)

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 166
JAudiorecorder record freezing the app 29 74
I want to use librsync in my Delphi backup application. 3 58
update joined tables 2 54
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question