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.
Like many roles in the C-Suite, the CIO role is also changing. Its impact and control have been circumvented by cloud computing, the consumerization of IT, and employees that now have unprecedented access to technology. The role of the CIO is at a critical juncture. For some CIOs, the changing landscape reduces their scope of influence. For others, it means unprecedented opportunity. This eBook explores the changes that CIOs are experiencing today and how these executives can leverage their expertise to help …
The world of data storage is changing around us as organizations continue to seek ways by which they can leverage cloud-based services. However, simply shifting everything to the public cloud is generally neither desirable nor feasible, so organizations are struggling with finding ways that they can leverage the public cloud and its outcomes where it makes sense and leave everything else on-premises.
The Gorilla Guide lays out the key questions and considerations you need to think through in building your …