Results 1 to 8 of 8

Thread: How to read one line at a time?[Resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Location
    Michigan
    Posts
    107

    How to read one line at a time?[Resolved]

    I'm reading a multiline, comma separated file into an array by splitting the elements by the comma delimiter, and using that to populate a listbox. But I also get the end of line binary character, which I don't want. How can I read one line at a time? I can do it in embedded VB, but don't find the same method on VB6. Thanks.
    PHP Code:
    Private Sub FillList()
      
    Dim aryList() As String
      Dim i 
    As Integer
      strFile 
    Input(LOF(1), 1)
      
    aryList Split(strFile)
      For 
    1 To UBound(aryList)
        
    lst1.AddItem aryList(i)
      
    Next
    End Sub 
    Last edited by trutta; Nov 27th, 2002 at 07:28 PM.

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