| Line 7: | Line 7: | ||
*Text files in which all lines have the same length. Each line (record) ends with a “Newline” (e.g., Carriage-Return and Line-Feed). Such files are already normal text files. | *Text files in which all lines have the same length. Each line (record) ends with a “Newline” (e.g., Carriage-Return and Line-Feed). Such files are already normal text files. | ||
| + | |||
| + | ---- | ||
A file “exported” from a database will often be a text file in which all lines (records) have the same length. However, the raw database file will often be a binary file with fixed-length records. | A file “exported” from a database will often be a text file in which all lines (records) have the same length. However, the raw database file will often be a binary file with fixed-length records. | ||
vEdit makes converting text, database, and binary files with fixed-length records properly easy. Files with “fixed-length records” fall into two categories:
A file “exported” from a database will often be a text file in which all lines (records) have the same length. However, the raw database file will often be a binary file with fixed-length records.
Once you open the files it should be easy to figure out which you have:
Text files, in which all lines have the same length, generally do not need to be converted into anything else.
Files with fixed-length records are limited in how you can edit. For example, you can not insert or delete characters since this would change the length of the current record and thereby corrupt the entire file. Similarly, you cannot delete a field by highlighting it as a columnar block.
This limitation on editing files with fixed-length records is controlled with CONFIG > File handling > Overwrite-only mode. You can turn it off, but you must then be extra careful not to corrupt the file.
When possible, you should convert the data file into a standard text file with Carriage-Return and Line-Feed after each record. This is easily done in vEdit.
Data files with fixed-length records can be converted into normal text files which have a “Newline” (e.g., Carriage-Return and Line-Feed) at the end of each record. In other words, each record is converted into a text line. Such text files are much easier to edit and can be imported into databases and other programs.
Although the file will not look any differently on the screen now, it will have been converted. You can confirm this by checking CONFIG > File handling > File type; it should now be set to “0”.
After saving the converted file, you should be able to open/import it in most other programs.