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

Threaded View

  1. #5
    Join Date
    Dec 2003
    Posts
    220
    Originally posted by Marc G
    Note: I only speak about Windows.

    If you have a text file, then each line should end with \r\n or \n.
    When you open a text file in text-mode, each \n will be replaced with \r\n. When you open the file in binary-mode, no such conversion takes place.
    Conclusion: When you do not want conversions to happen behind your back, open the file in binary. Because you said you wanted to split the file in 2 and then merge them back in one, you want the resulting file to be exactly like the original, don't you. Therefore open the file in binary, and no conversion will take place.
    (ha)^n.(n->infinity)
    I mean I laugh alot, now I know about binary mode, but actually I dont care about conversions.
    Thanks so much for your help, I will try to remember all of what you said...

    Regards,

    Fiona

    I care about this, no matter HOW and what it is, just think I am guilty and from now I gotta do something to repay...That cant be but another different form can ...<--If you dont understand, forget it, I want that reader to undestand this and that s all !!!
    Attached Images Attached Images
    Last edited by Homestead; January 3rd, 2004 at 02:28 PM.

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