Circular File
Posted
by Ibrar Ahmad
on November 14th, 2000
Constructors:
-
//Create New File with Name "default Log" with 100 Lines CCirFile(); -
//Create File with Name strFile Name But 100 lines CCirFile(char * strFileName); -
//You can specify file Name and File Size CCirFile(char * ,int );
Functions
-
//All file initialization here int InitFile(); -
//You should call this function to add new line at start of file int AddLine( CString );
Limitations
- It's not a true circular file implementation. It adds each new line to the beginning of the file, and moves the remaining lines, truncating the last line
- It's slow and performance could be dramatically increased via the use of multiple threads.

Comments
Interesting, but what limitations :(
Posted by Legacy on 07/09/2002 12:00amOriginally posted by: C�dric
Reply