Does anyone know of the location of a tutorial that can show me how to read from a binary file and determine what (of three different types) of data are present within the file? I have scoured the internet back and forth and have found nothing. I am doing a project that should read a binary file and then give a 1 or a 0 based on the presence of three types (in this case height, salinity and temp of the ocean) of data within. I've been given the code to write the binary file, and also have written my code to where it will work if I tell it what types of data are present from the command line. I, for the life of me don't know where to start on analyzing binary values. Any help at all would be appreciated. Below is the code I was given to create the binary file. When you run from the command line, you type in the program name followed by the three flags and then a data size, for instance 1 1 0 50, then my program should be able to read that binary file, and spit back the same 1 1 0 50