-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Windows Application Development Cookbook
By :
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 the application is shown in the following image:

To step through this recipe, you need only the automatically generated project.
To prepare an example that saves data in a custom format within a binary file, perform the...