-
July 30th, 2010, 02:23 AM
#1
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...
-
July 30th, 2010, 02:36 AM
#2
Re: Pass to another text file while writing
Close the first file and create/open the second file. What's the problem ?
-
July 30th, 2010, 02:38 AM
#3
Re: Pass to another text file while writing
-
July 30th, 2010, 07:21 AM
#4
Re: Pass to another text file while writing
Keep track of it as you write it out.
-
August 1st, 2010, 04:03 AM
#5
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|