Solved

File based FIFO (first in first out)

Posted on 1998-07-15
5
430 Views
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
0
Comment
Question by:q064828
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

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

http://home.sprynet.com/sprynet/rrm/index.html

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!

Zif.


0
 
LVL 8

Expert Comment

by:ZifNab
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!

Zif.
0
 
LVL 7

Expert Comment

by:BlackMan
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.
0
 
LVL 8

Expert Comment

by:ZifNab
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.
0
 
LVL 7

Expert Comment

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

687 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