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:
Dim fileContents As String = My.Resources.ResourceName
In earler versions you have to work a bit harder.
VB Code:
Dim thisExe As System.Reflection.Assembly
thisExe = System.Reflection.Assembly.GetExecutingAssembly()
Dim file As System.IO.Stream = _
thisExe.GetManifestResourceStream("WindowsApplication4.StackTrace.txt")
Dim sr As New IO.StreamReader(file)
MessageBox.Show(sr.ReadToEnd())
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.