I create file like this: (I need it shared...)
And then, write to it:Code:
if ( (file = CreateFile(file_name.c_str(), GENERIC_WRITE , FILE_SHARE_WRITE ,NULL,OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL,NULL)) == INVALID_HANDLE_VALUE ) return;
This way, if file doesn't exist it will be created, and if it does exist it will be updated.Code:
My question is, how to append new text ABOVE last line in file?