View Single Post
Join Date: Oct 2008
Posts: 6
Reputation: corteplaneta is an unknown quantity at this point 
Solved Threads: 0
corteplaneta corteplaneta is offline Offline
Newbie Poster

Re: VB.NET/Outlook Message Display Issue

 
0
  #3
Oct 9th, 2008
Well can someone at least tell me a different way of reading file contents than this:
  1. Public Function GetFileContents(ByVal FullPath As String, _
  2. Optional ByRef ErrInfo As String = "") As String
  3.  
  4. Dim strContents As String
  5. Dim objReader As StreamReader
  6. Try
  7. objReader = New StreamReader(FullPath)
  8. strContents = objReader.ReadToEnd()
  9. objReader.Close()
  10. Return strContents
  11. Catch Ex As Exception
  12. ErrInfo = Ex.Message
  13. End Try
  14. End Function
Last edited by corteplaneta; Oct 9th, 2008 at 10:06 am.
Reply With Quote