Pass to another text file while writing
How to control the size of the text file that we want to write in and create another file if it passes our limit in vc++??
i.e: Assume that we put the incoming messages to a logfile.txt, as soon as its size got bigger than 10mb, we must create another file, name logfile(2).txt and continue writing on this.. this goes like this...
Re: Pass to another text file while writing
Close the first file and create/open the second file. What's the problem ?
Re: Pass to another text file while writing
Re: Pass to another text file while writing
Keep track of it as you write it out.
Re: Pass to another text file while writing
Seek to end upon opening then just add the return of Write functions, to track the size.