How to read a file

Make sure you imported:

Imports System.IO



 Function imagestring()
        Dim reader As New StreamReader("C:\img.txt") 'Replace with document path
        Dim contents As String = reader.ReadToEnd
        reader.Close()
        Return contents
    End Function
StreamReader

Related Posts

No Comments Yet.

Leave a reply

You must be logged in to post a comment.