O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading a binary file

The process of reading a binary file is related to the process of its creation, because it is necessary to analyze its content in exactly the same way. In this recipe, you will learn how to read data stored in a binary file.

As an example, you will modify the project from the previous recipe by adding a Load results button. After you click on it, data from the Results.bin file will be read and added to the collection of results. Also, the minimum, maximum, and average values will be calculated and shown in the user interface, together with a number of results and the time necessary for the previously run and saved experiment.

Getting ready

To step through this recipe, you need the project from the previous recipe.

How to do it... ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required