<!-- Download Links -->
Download source files - 28 Kb
<!-- Main HTML starts here -->
When I wrote my first article on codeguru "Expandable Buffer" I saw there
were lot of people seeking a Circular File. Hence I developed my own Circular File, and wanted to share
it. Its interface is so simple.
CCirFile() - Creates a new file with name "default Log" with 100 Lines
CCirFile(char * strFileName) - Creates a file with name strFileName.
strFileName must be less than 100 lines
CCirFile(char * ,int ) - You can specify the file name and file size
int InitFile() - All file initialization is done here
int AddLine( CString ) - You should call this function to a add new line at
the start of the file
- Its not a true Circular File. It will add a new line at the start of the
file and move all lines down one place, and the last line will removed
- It's slow. It can be enhanced by using multithreading.
Master of Computer Science
3). Network Programming...
4). hardware interfaceing
5). Emabeded programming in C51...Etc
(for 8051,PIC,C166 Processores)