Hi @Hugh Self Taught ,
Consider using System.IO.StreamReader or System.IO.File to avoid late binding.
Dim GetBoiler As String = Nothing
'Using StreamReader
Using reader As New StreamReader(filePath)
tBoiler = reader.ReadToEnd()
End Using
'Using File.ReadAllText
GetBoiler = File.ReadAllText(filePath)
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.