Reading note number of a midi message from a midifile

Hello all,

How could i read the note number of a midi message from a track in a midifile. i did the following so far:
My main problem is how to isolate each midi message and take its note number.

my code

            //Midifile to read from
MidiFile midifile;

//Declare the midifile as a regular file object
File file;

//Select midi file we wish to open to read
file = File::File("C:\Users\user\Documents\Visual Studio 2005\Projects\Testing\c-scale");

//Declare the file input stream 
FileInputStream* inputFromFile;

//create input stream for the file
inputFromFile = file.createInputStream();