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

Writing a binary file

In the case of storing huge amounts of data, using XML-formatted or JSON-formatted string values may not be sufficient. For this reason, in this recipe, you will learn how to define you own binary format and store bigger amount of data within binary files.

As an example, you will prepare an application that will simulate the experiment. After you press the Start experiment button, the operation of generating a random value will be repeated 100,000 times. For each one of them, a value will be added to the collection of results, together with a period of time in milliseconds that elapsed since the beginning of the experiment. At the end, the minimum, maximum, and average values will be calculated and presented. The window of ...

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