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

Threaded View

  1. #1
    Join Date
    Apr 2004
    Posts
    158

    How do I make this work in vb.net?

    I am trying to read/write a simple text file in net 2008 but can't, as yet, get it to work.
    Any help would be appreciated.
    This is how I use to do it in VB6



    Code:
    MyStr = App.Path & "\Data\Data.txt"
    
    Open MtyStr For Input As #1
    Do While Not EOF(1)
    Input #1, Num(a, 0), Num(a, 1), Num(a, 2), Num(a, 3), Num(a, 4), Num(a, 5), Num(a, 6)
    
     a = a + 1
     
    Loop
    Close #1
    Last edited by dajunka; May 9th, 2010 at 12:45 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

Featured