As a result of the project requirements, today wrote a small software, software implementation of file data reading, the reading of the file data per byte high and low level conversion to the bin file.
First click on the Import button, you can select a variety of files. When a file is selected, the first textbox displays the address of the selected file, and then the Export button enables the Browse button to allow the user to choose where to save the exported bin file.
Next look at the knowledge point:
1. Selection of import files
Use the OpenFileDialog class to open the File Selection dialog box, and then write the file's path name to the textbox1 after selecting it
2. Data stream binary Read and write
Binary reads and writes of data streams are used in BinaryReader and BinaryWrite classes
3. Select the Save path function for the exported data
The class used is FolderBrowserDialog
4. The most important byte high and low position conversion algorithm
Small software involves not many classes, just need to familiarize themselves with the use of these classes on the line