Edit Anything

Professional text and hex editing
with Binary Templates technology.

010 Editor - Text/Hex Editor Homepage

A variable can be declared using the syntax '<data type> <variable name>;' Use an '=' to assign a value to the variable. Multiple variables can also be declared using the ',' operator. For example:

    int x;
    float a = 3.5f; 
    unsigned int myVar1, myVar2;

For a complete list of types allowed, see Data Types. Any variables declared in a Script will be displayed in the Variables tab of the Inspector. Arrays of variables can also be declared (see Arrays and Strings). Declaring variables is the main way of building Templates (see Declaring Template Variables for more information).


Constants can be declared using the keyword 'const' before a variable declaration. For example:

    const int TAG_EOF = 0x3545;

This syntax is generally better for defining constants than using the '#define' preprocessor directive. A number of constants are built into 010 Editor, including true, false, TRUE, FALSE, M_PI, and PI. See Interface Functions for a list of other constants used for coloring or Tool Functions for a list of constants used when calling tool functions.

This is the manual for 010 Editor, a professional hex editor and process editor. Use 010 Editor to edit the individual bytes of any binary file, hard drive, or process on your machine. 010 Editor contains a whole host of powerful analysis and editing tools, plus Binary Templates technology that allows any binary format to be understood.