Do you know the binary format of the file? Is it documented? If so, it's just going to be a bit of tedium writing the code that matches that specification, then displaying the discrete data elements you've extracted. If you have no idea what the format is, then it's basically an impossibility unless these file formats are so popular that others have already written solid libraries for parsing them.
You can open and read any file format. The problem that needs to be solved relates to interpreting the data in it. To do that you need to look into the specification of the file format to understand how the data is stored and the header is constructed.
Look at the source you are trying to port as well as any publicly available specs of the format.