How far can you get in the process? Can you open up a file? Do you want to read it straight out of the file into one big string to put it in the message box? Try to see how much headway you can make first and then post whatever code you've got. I assume since you want a messagebox that you are familiar with MFC?
If you're doing C++ you should use fstream, it makes things a lot more intuitive, I think.
If you had no space between level and = you could have something like
while(infile >> tempstring)
//add tempstring to vector or array
infile >> tempvalue;
//add tempvalue to it's own array or vector
} //this way you can read in as many lines as you need to
//you'd have to specify the array size before hand or ask the user for
//how many records
So, if you want to stick with the C style of doing it that's still ok, just wanted to offer the option to you.
Dim Adapter As New OleDbDataAdapter
Dim Command As New OleDbCommand
Dim xFrom As String = dtpFrom.Value.ToString.Substring(0, dtpFrom.Value.ToString.IndexOf(" "))
Dim xTo As String = dtpTo.Value.ToString.Substring(0, dtpTo.Value.ToString.IndexOf(" "))
sqlQuery = MainQuery ...