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.
Do you know where your data is? Consumer cloud-based file sharing services store your sensitive company data on servers outside of your control, outside of your policy and regulatory guidelines – maybe even outside your country – and not managed by you. The potential for data leakage, security breaches, and harm to your business is enormous. Download this white paper to learn about file sync and share alternatives that allow you to manage and protect your sensitive data while integrating and …
If you need new tools and tricks to make your meetings profitable and productive, then 5 Tips in 5 Minutes: A Quick Guide for More Profitable Sales Meetings is for you. Timely, practical tips that you can incorporate in just seconds will save you literally hours in travel and meeting time, not to mention help you to focus on what your sales prospects really want to know and how you can meet their needs. Get 5in5: A Quick Guide for More Profitable Sales Meetings and start building your sales the smarter, faster …