Open a .csv file into Visual Basic 2005 Express

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chitty210589
    New Member
    • Oct 2007
    • 1

    Open a .csv file into Visual Basic 2005 Express

    Hello there,

    I am currently re-writing my Word Processor I wrote in VB6 to VB.Net 2005.

    I cannot get the following VB6 code to work in VB.Net, I have tried various ways.

    The VB6 code is;
    [code=vb]
    Open App.Path & "\recdocs.r df" For Input As #1
    Do Until RecNumber = 1
    Input #1, RecNumber, RecTitle, RecPath
    Loop
    Close #1
    [/code]
    I hope you can help me!!
    Last edited by pbmods; Oct 16 '07, 12:15 AM. Reason: Added CODE tags.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Chitty. Welcome to TSDN!

    Please use CODE tags when posting source code:

    [CODE=vb]
    VB code goes here.
    [/CODE]

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by pbmods
      Please use CODE tags when posting source code: ...
      I give up! How do you do that without the tags being interpreted?

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by chitty210589
        I cannot get the following VB6 code to work in VB.Net ...
        I'd recommend you look into using the FileSystemObjec t model. It's the way of the future. You can find it in the doco.

        Comment

        • slapshock
          New Member
          • Oct 2006
          • 57

          #5
          if you want you can use the streamreader... it can read csv file...

          just search on how to use stream reader

          Comment

          Working...