Results 1 to 1 of 1

Thread: Help Please

Threaded View

  1. #1

    Thread Starter
    Fanatic Member steve65's Avatar
    Join Date
    Jun 2000
    Posts
    610
    Can't you do something like...
    Code:
    Sub CopyStringtoArray()
        
    Dim TempFile As Integer
    Dim TempString As String
    Dim StringArray() As String
        
        TempFile = FreeFile
        Open App.Path & "\stringfile.txt" For Input Lock Write As #TempFile
        
        Do While Not EOF(TempFile)
                Line Input #TempFile, TempString
        Loop
        Close TempFile
    
        StringArray = Split(TempString,",")
    
    End Sub
    Since your file is about 416k that equals out to 416,000 characters. A variable length string is able to hold 2 billion characters. So you should be OK.

    Someone correct me if my math is wrong.
    Last edited by steve65; Dec 10th, 2001 at 11:14 AM.
    This space for rent...

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