Click to See Complete Forum and Search --> : Text file


Alma Franco
April 11th, 2001, 10:54 PM
Visual Basic: I have some information in a collection, I need to export these information to a text file .txt, how can I do this.

azura107
April 12th, 2001, 12:46 AM
you need to load it into your work, this is to load 5 parallel arrays

'remember to declare variables
'Dim I As Integer
'Dim dblNum As Double

I = 0
Open "a:\HOUSES.txt" For Input As #1
While Not EOF(1)
I = I + 1
Input #1, gStreetNum(I), gStreetName(I), gSuburb(I), gPostalCode(I), gPrice(I)
Wend
Close #1
dblNum = I