Results 1 to 5 of 5

Thread: [RESOLVED] problem with reading .txt

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2007
    Posts
    10

    [RESOLVED] problem with reading .txt

    I am working on a program that i need it to read from a .txt file. My problem is i get an error saying variable not defined for My.Computer.FileSystem.ReadAllText.

    Code:
    Dim fileReader As String
    fileReader = My.Computer.FileSystem.ReadAllText("C:\my vb stuff\stuff.txt")
    MsgBox (fileReader)
    Also i know this will just show all the text is their a way to read one line of this?

    thanks you, blobs
    Last edited by blobs; Dec 4th, 2007 at 10:27 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