Hi All I do not read file content except .txt file .Can you give universal solution in vb dotnet to read content all type of file. Thanks in advance
Dim filetoread As String = "c:\CodeNotes_NET.pdf"
Dim filestream As StreamReader
filestream = File.OpenText(filetoread)
Dim readcontents As String
readcontents = filestream.ReadToEnd()