Results 1 to 2 of 2

Thread: How can you save an array(strings) to a file?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269

    How can you save an array(strings) to a file?

    with each string in the array on each line?

  2. #2
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560
    Here's one way...
    VB Code:
    1. Dim i as Long    
    2.  
    3. Open App.Path & "Array.txt" For Output As #1
    4.  
    5. For i = 0 To UBound(yourArray)
    6.    Print #1, yourArray(i)
    7. Next i
    8. Close #1
    Give your music collection a whole new life with PartyTime Jukebox

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