How To Read A Binary File

Table of contents:

How To Read A Binary File
How To Read A Binary File

Video: How To Read A Binary File

Video: How To Read A Binary File
Video: Reading from binary files in C 2024, December
Anonim

A binary file is any file on your computer. All information on the computer and related media is recorded in bits (hence the name). However, for comparison, a text file can be read in the readers corresponding to the extension (the simplest ones - even in Notepad), but the executable file cannot. And although in fact a txt file is the same binary file, when they talk about the problem of opening the contents of binary files, they mean executable files, as well as compressed data.

How to read a binary file
How to read a binary file

Necessary

Hex Edit program

Instructions

Step 1

Download the Hex Edit program to the hard drive - a file editor that represents their contents in binary form. Open the program by double-clicking on the start file. This software allows you to read binaries in real time, modify content, add your own entries, and much more. To work properly in this environment, you need to know a little about the general concepts of binaries.

Step 2

The program window is not much different from the usual editor: the familiar menu and panel with buttons, the body of the edited file, bookmarks and the status bar. Open the binary file through the File menu or by clicking on the corresponding icon on the panel. The binary file will appear before you as strings with numbers and letters. Do not confuse these characters with printed data in text files. They can also be edited by deleting symbols, but this will delete cells with data, pieces of the file.

Step 3

Make changes to the contents of the file. The application can show important parts of the file for easier searching, and also has flexible configuration of the graphical display of the binary code. Switch the content view to ASCII + IBM / OEM mode to see the program code of the file. If you enter the wrong lines in the file, it may not work correctly, causing serious consequences for the operating system of the personal computer.

Step 4

Save your changes. If you have no experience in editing files in this way, be prepared for the file not opening and refusing to work after making changes. You will most likely mess up a few copies before you get the job done. Try not to save all changes to the original file so that its contents remain unchanged.

Recommended: