A .dat file is just a text file and it can be opened with any sort of text-editor. If you have windows, I would recommend using notepad++ or kate if you have ubuntu.
However, if you want to actually process the .dat file and get useful information out
e.g. the Mascot Ion Scores, expectation values etc you could either use a library like that suggested by Kenneth or the library made by the Mascot guys themselves.
An alternative that I would recommend because it's friendlier is to convert it into pepXML e.g. with Mascot2XML in TPP.
I tried both method (mascotdatfile also before posting the question).
Concerning mascotdatfile I just cannot open the executable jar file. It simply does not start.
Then I tried to install TPP to use Mascot2XML, and also here I have some problems. The point is that it simply does not connect to the localhost via Apache at the start. I tried to consult the FAQ section and different forums but with no success.
I would like to open my .dat file to access the MS/MS scan, which the I would like to submit to PRIDE.
So you're trying to map a Mascot query e.g. q1_p1 to the corresponding ms/ms that it was derived from? If so, you'll need to be a little careful because the query order doesn't equate to the ms/ms scan.
Also, if you wanted the peak lists of the ms/ms then my suggestion of converting to pepXML wouldn't work as these files don't retain the peak list.