Results 1 to 5 of 5

Thread: Writing in a text file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Lisbon, Portugal
    Posts
    69

    Question Writing in a text file

    Hi all,

    I have an excel file and I need to write each line of this file in a text file.

    I read the first line and I write it in my text file, like this:

    Open c:\test.txt for output as #1
    print #1, myline

    How can I write the second line of the excel file in the second line of my text file?

    Thanks in advance.
    Rita Jaques

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    put the code you have in a loop?

    post all of the code you use to read and write if you need more input
    -= a peet post =-

  3. #3
    Member
    Join Date
    Jul 2002
    Location
    CHILE
    Posts
    36
    Try this

    x=myline number

    For x=1 to n
    Open c:\test.txt for Append as #1
    Write #1, myline
    next x
    Close #1

    I hope this help

  4. #4
    Member
    Join Date
    Jul 2002
    Location
    CHILE
    Posts
    36
    don't help you this?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Lisbon, Portugal
    Posts
    69

    Smile

    Yes

    It helps. It is exactly what I want.

    Thanks very much.
    Rita Jaques

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