Results 1 to 4 of 4

Thread: Insert Newline with Writefile

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Location
    Stockholm, Sweden
    Posts
    44

    Insert Newline with Writefile

    Hi,
    I need to insert newline at the end of a textfile using writefile.
    Is this possible or are there another API-Call to do that?

    /John Jacobson
    ********************
    VB 6
    VB 7 (.NET)
    DarkBasic (Beginner)
    ********************

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    WriteFile hFile, xxx, 10, numwritten, CLng(0)

    Have you tried substituting xxx above for one of these :
    vbcrlf
    Chr(13)

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    Registered User
    Join Date
    Dec 2000
    Location
    NL
    Posts
    8

    Maybe try this one

    Try vbCrLf or vbNewline

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2001
    Location
    Stockholm, Sweden
    Posts
    44
    That didn't work.
    I Solved the problem with the VB scripting Runtime instead, It's a bit slower, but it works.
    ********************
    VB 6
    VB 7 (.NET)
    DarkBasic (Beginner)
    ********************

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