When I wrote my first article on CodeGuru,
Expandable, Data Type-Neutral Buffer Class,
I realized that there are lot of people seeking the code
for a circular file.
Hence, I developed my own circular file implementation, and want
to share this. Its interface is very simple. Everything basically
revolves around the Addline(CString) method which you use to
add a line at a time to the current file.
//Create New File with Name "default Log" with 100 Lines
//Create File with Name strFile Name But 100 lines
CCirFile(char * strFileName);
//You can specify file Name and File Size
CCirFile(char * ,int );
//All file initialization here
//You should call this function to add new line at start of file
int AddLine( CString );
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.
Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT
Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …
Businesses are moving more and more of their customer transactions to the web. Security is understandably a top concern as online transactions increase, so it is important to make sure your electronic signature provider meets the highest security standards. That means more than simply passing a security audit or obtaining a certification. This white paper provides recommendations for taking a broader view of e-signature security, and answers key questions that help identify the security requirements against …