Results 1 to 22 of 22

Thread: Reading data from files [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Jareware's Avatar
    Join Date
    Nov 2000
    Location
    Silicon Valley, CA
    Posts
    275

    Question Reading data from files [RESOLVED]

    I have a textfile a bit over 2 MB of size, and it takes painfully long to open it (almost 60 seconds). I'm using the following code to input the data:
    VB Code:
    1. Open App.path & "\index" For Input As #FF
    2.         Do
    3.             Line Input #FF, inputString ' Read a line
    4.             wholeLog = wholeLog & inputString & vbNewLine ' Append newly read line
    5.         Loop Until EOF(FF)
    6.     Close #FF
    Is there some faster method of reading the data from the file?


    -JR-
    Last edited by Jareware; Jan 6th, 2003 at 09:26 AM.
    "Blessed are we who can laugh at ourselves for we shall never cease to be amused"
    - Unknown

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