(Created page with "<seo title="Binary/Data Files - Record Mode | vEdit" description="With vEdit you can quickly read and edit Binary/Data Files using 'Record' mode in which a uniform number of c...")
 
(Related Resources)
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
In Record mode, any Line-Feed and Carriage-Return characters are no longer treated as “newline” characters. However, they may display as '''<LF>''' and '''<CR>'''. Similarly, control and graphics characters are displayed according to the current display mode. Repeatedly pressing <kbd>Alt-D</kbd> (the normal hot-key for <kbd>VIEW</kbd> > <kbd>Toggle display mode</kbd> ) will let you find the desired display mode. (This function is also on the toolbar.)
 
In Record mode, any Line-Feed and Carriage-Return characters are no longer treated as “newline” characters. However, they may display as '''<LF>''' and '''<CR>'''. Similarly, control and graphics characters are displayed according to the current display mode. Repeatedly pressing <kbd>Alt-D</kbd> (the normal hot-key for <kbd>VIEW</kbd> > <kbd>Toggle display mode</kbd> ) will let you find the desired display mode. (This function is also on the toolbar.)
  
===Toggle Modes While Editing===
+
==Toggle Modes While Editing in vEdit==
  
 
;Display Mode
 
;Display Mode
Line 23: Line 23:
 
==Related Resources==
 
==Related Resources==
 
*[[Binary_Text_File_Types|Binary/Data and Text File Types]]
 
*[[Binary_Text_File_Types|Binary/Data and Text File Types]]
 +
*[[Main_Page#section-editing|Edit EBCDIC, ASCII, ANSI, Hex, Text and Multiple Files]]
 +
*[[Main_Page|Wiki Home]]

Latest revision as of 16:55, 20 February 2017


vEdit treats files that do not have any “newline” characters in them as binary/data files. Files with text lines longer than about 4000 characters are also treated as binary/data files.

Binary/data files are usually edited in “Record” mode in which a uniform number of characters are displayed per line or “record”. This defaults to 64, but can be changed with CONFIG > File handling > File type. Selecting a value of “8” through “65535” selects Record mode and selects the number of characters displayed per line. The number of characters per line is referred to as the “record length” or sometimes “record size".

Setting the desired record length also handles files with “fixed-length records”. For example, files downloaded from IBM mainframes often have fixed-length records with record lengths of 80, 256 and other values. Most database files also have fixed-length records.

The record length is often greater than the width of the current window. The record can be viewed using horizontal scrolling or by wrapping the record onto multiple screen lines. CONFIG > Display options > Horizontal scroll margin controls how long lines are displayed.

In Record mode, any Line-Feed and Carriage-Return characters are no longer treated as “newline” characters. However, they may display as <LF> and <CR>. Similarly, control and graphics characters are displayed according to the current display mode. Repeatedly pressing Alt-D (the normal hot-key for VIEW > Toggle display mode ) will let you find the desired display mode. (This function is also on the toolbar.)

Toggle Modes While Editing in vEdit

Display Mode
When editing a binary/data file, you may want to use VIEW > Toggle display mode ( Alt-D or toolbar) to select “ASCII-4” which displays any Line-Feed, Carriage-Return, Tab and other control characters as a single character instead of as <LF>, etc.
Hex Mode Split
Binary/data files are often most easy to edit with a split window displaying hexadecimal and ASCII. This can be selected with VIEW > Toggle hex mode split ( Alt-\ ).
Overwrite-only Mode
By default, in “Record mode” you can only overstrike characters, you cannot insert or delete characters. This reduces your chance of corrupting the file, however full editing can be enabled by setting CONFIG > File handling > Overwrite-only mode to “0”.

Related Resources