High-low conversion output of file data

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.