-
Book Overview & Buying
-
Table Of Contents
Windows Application Development Cookbook
By :
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.
To step through this recipe, you need the project from the previous recipe.
To modify the preceding example to load experiment data from a binary file, perform the following steps:
Add the Load results button to the page by modifying the content of the MainPage.xaml file as follows:
<Page (...)>
...