|
-
February 18th, 2009, 04:12 AM
#7
Re: String problems
 Originally Posted by Russco
Paul told you how to fix it. Reread his post.
In addition to what paul told you, you also make another mistake and that is controlling your file read loop with eof(). eof() is not for controlling loops, its for distinguishing errors from eof conditions. You probably notice that the file copied grows in size by a small amount.
It did grow with 1 byte, but not any more since it first writes and then reads, so it dumps the extra byte .
Last edited by chibicitiberiu; February 18th, 2009 at 05:07 AM.
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
|