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