CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Text file

  1. #1
    Join Date
    Apr 2001
    Posts
    1

    Text file

    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.


  2. #2
    Join Date
    Apr 2001
    Posts
    6

    Re: Text file

    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


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

Featured