This commit is contained in:
2025-05-30 14:22:12 +03:30
parent 6d9aef6125
commit 6aaed9d03a
6 changed files with 747 additions and 20 deletions
@@ -114,10 +114,10 @@ class XCXCATBEADataCollector : public XCBase
/**
* Save Specified Content into Specified File Name ...
*
*
* @param fileName: string, file name ...
* @param content: string, content ...
*
*
* @return ( bool )
*/
bool Save(
@@ -153,6 +153,48 @@ class XCXCATBEADataCollector : public XCBase
return result;
}
/**
* Append Specified Content into Specified File Name ...
*
* @param fileName: string, file name ...
* @param content: string, content ...
*
* @return ( bool )
*/
bool Append(
string fileName,
string content //
)
{
//
bool result = false;
//
result = IsValid(content);
if (!result)
{
return result;
}
//
//
int mHandler = GetFileHandlerForWrite(fileName);
result = mHandler != INVALID_HANDLE;
if (!result)
{
return result;
}
//
FileSeek(mHandler, 0, SEEK_END);
FileWrite(mHandler, content);
FileFlush(mHandler);
FileClose(mHandler);
//
return result;
}
//
// Protected ...
protected: