This function reads a file from disk and converts its text contents to a string.
FileToString (strPathFile As String) As String
PathFile Path and Filename of file to be read
The content of the file is read and concatenated between vbLf characters.
If the file cannot be opened, the string "File error" is returned.
To input a string from a file:
Dim strFile as String
strFile = Preview.FileToString("C:\Letter.txt")
Come and visit :