(→Force All Lines to the Same Length) |
(→Force All Lines to the Same Length) |
||
| Line 9: | Line 9: | ||
[[File:Pad_Lines_To_Same_Length.png|border|upright|class=img-responsive center-block|link=]] | [[File:Pad_Lines_To_Same_Length.png|border|upright|class=img-responsive center-block|link=]] | ||
| − | + | ==Force All Lines to the Same Length== | |
#Select <kbd>Edit</kbd> , <kbd>Convert</kbd> then <kbd>All lines same length</kbd> | #Select <kbd>Edit</kbd> , <kbd>Convert</kbd> then <kbd>All lines same length</kbd> | ||
vEdit makes it easy to ensure that all lines in a text file have the same length. For example, if each text line is one data record and the file will be
imported into a database, all lines may need to be the same length.
The function EDIT > Convert > All lines same length forces all text lines to have the same length; it prompts for the desired length. Lines shorter than the desired length are padded at their end with spaces; lines longer than the desired length are optionally truncated.

If any lines are already longer than the desired length, you are prompted with: Ignore, Truncate, or Stop.
It is recommended to stop and correct this inconsistency.
Alternatively, you can truncate the too-long lines. If you ignore the long lines, not all lines will have the same length.
See Also: