(→How to Convert Between Files Types) |
|||
| Line 11: | Line 11: | ||
vEdit supports Windows/DOS, UNIX/Linux and Mac text files. Main differences between them are the “newline” characters used at the end of each line. vEdit also supports data files with fixed-length records. | vEdit supports Windows/DOS, UNIX/Linux and Mac text files. Main differences between them are the “newline” characters used at the end of each line. vEdit also supports data files with fixed-length records. | ||
| − | |||
| − | |||
==Confirm File Type== | ==Confirm File Type== | ||
| + | |||
| + | When opening a file, vEdit automatically determines the most likely file type. It can usually determine the correct file type for text files (Windows/DOS, UNIX/Linux or Mac). It is highly recommended confirming the file type before doing file converting. | ||
1. Move the cursor to the end of a line | 1. Move the cursor to the end of a line | ||
| Line 42: | Line 42: | ||
==How to Convert Between Files Types== | ==How to Convert Between Files Types== | ||
| + | |||
| + | Converting Windows/DOS, Mac, and UNIX/Linux files is made easy with vEdit's Convert Macro (Convert between File Types): | ||
| + | |||
| + | 1. To convert the entire file, click <kbd>Block</kbd> then <kbd>Select all</kbd> ( hot-key: <kbd>Ctrl-A</kbd>) to block highlight the file. | ||
| + | |||
| + | <div class="callout note">You can convert a file without highlighting a section and will be prompt when opening the converter "OK to convert entire file?"</div> | ||
| + | |||
| + | 2. Once you have what you wish to convert highlighted, click <kbd>Edit</kbd>, <kbd>Convert</kbd>, then select <kbd>Convert Macro</kbd> | ||
| + | |||
| + | |||
| + | |||
| + | |||
Since converting between Windows/DOS and UNIX text files is very common, vEdit provides the easy-to-use functions: | Since converting between Windows/DOS and UNIX text files is very common, vEdit provides the easy-to-use functions: | ||
This article shows how to convert between different file types and perform other useful conversions.
vEdit supports Windows/DOS, UNIX/Linux and Mac text files. Main differences between them are the “newline” characters used at the end of each line. vEdit also supports data files with fixed-length records.
When opening a file, vEdit automatically determines the most likely file type. It can usually determine the correct file type for text files (Windows/DOS, UNIX/Linux or Mac). It is highly recommended confirming the file type before doing file converting.
1. Move the cursor to the end of a line 2. Press Alt-D (the hot-key for View > Toggle display mode)
You can now see the hex codes for the “newline” characters, if any. “0D” is the hex code for Carriage-Return. “0A” is the hex code for Line-Feed.
If you don't see “0D” or “0A”, then you must have already explicitly set a record-length with CONFIG > File handling > File type.
3. Double-check that CONFIG > File handling > File type is set to the correct file type.
Otherwise, it is set to the data file's record length.
Converting Windows/DOS, Mac, and UNIX/Linux files is made easy with vEdit's Convert Macro (Convert between File Types):
1. To convert the entire file, click Block then Select all ( hot-key: Ctrl-A) to block highlight the file.
2. Once you have what you wish to convert highlighted, click Edit, Convert, then select Convert Macro
Since converting between Windows/DOS and UNIX text files is very common, vEdit provides the easy-to-use functions:
Convert Win / DOS to UNIX in 3 just steps, Click EDIT, Convert then Win/DOS to UNIX
or
Convert UNIX to Win / DOS by clicking EDIT, Convert then UNIX to Win/DOS.