CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080

    That's an easy one for you gurus.

    I would like to write in a file a STRING without adding a chr(13) and chr(10) char at the end.. I'm pretty sure it's easy to do but it seems that
    Print and Write add a chr(13) and chr(10) at the end.

    Nicolas



    Nicolas Bohemier

  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: That's an easy one for you gurus.

    It's all in the little things

    print #FileNum, "This is a string";
    ' ^
    ' This little thing --------------|



    Adding a ; at the end will prevent the vbcrlf from printing

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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