Solved

File based FIFO (first in first out)

Posted on 1998-07-15
5
414 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

832 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