Results 1 to 2 of 2

Thread: writing 2 lines on a text files

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    didn't decide yet
    Posts
    566

    writing 2 lines on a text files

    Hi to all here is my prob

    i want to create a new text file and write only to lines in it so i use the following code
    VB Code:
    1. s="ee" & vbcrlf & "kk"
    2. open app.path & "\test.txt" for append as #1
    3. print #1,s
    4. close #1
    the problem is that test.txt now contains 3 lines the last one is empty like the string i entered was s=s="ee" & vbcrlf & "kk" & vbcrlf how do i overcome that one?

    thnks
    Come and get our ISDN CallerID http://www.3wm.biz

  2. #2
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216
    try this

    s="ee" & vbcrlf & "kk"
    open app.path & "\test.txt" for append as #1
    print #1,s; ' the ";"
    close #1
    B.S Computer Science
    M.S Computer Engineering

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