CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 21

Thread: String problems

Threaded View

  1. #7
    Join Date
    Jan 2009
    Posts
    25

    Re: String problems

    Quote Originally Posted by Russco View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured