I am writing a c++ program to write to a text file of a specified size. I initially create a text file of size specified say 2 KB, I want to keep writing to this file till the 2 KB limit is reached and that point notify the user. I am not sure what the best way is. I am looking for a cross platform solution. Would something like libevent (http://libevent.org/) be good for this or am I missing something simpler.
Any advice/help greatly appreciated.
Thanks