In VB 2005 it is so easy a retarded lump of coal could do it. You add the file as a resource on the Resources tab of the project properties and at run time you do this:
VB Code:
  1. Dim fileContents As String = My.Resources.ResourceName
In earler versions you have to work a bit harder.
VB Code:
  1. Dim thisExe As System.Reflection.Assembly
  2. thisExe = System.Reflection.Assembly.GetExecutingAssembly()
  3. Dim file As System.IO.Stream = _
  4.     thisExe.GetManifestResourceStream("WindowsApplication4.StackTrace.txt")
  5. Dim sr As New IO.StreamReader(file)
  6.  
  7. MessageBox.Show(sr.ReadToEnd())
  8. sr.Close()
That code is adapted from this example. I used a project named WindowsApplication4 and a file named StackTrace.txt. You'll obviously have to change those to whatever is appropriate in your case.