When handling large database type files it is sometimes necessary to split the file into "records" of known line lengths as the file may have been output without any delimiters/separators between records.
The Insert string at every increment feature allows a user-specified string to be inserted at a constant user-specified increment in the file from some start point in the file to some end point in the file.
The dialog provides the following options:
String to insert:
Enter into this field the string you wish to be inserted in the file. For a new line, enter "^p".
File increment (record length) at which to insert string
Enter here the number of characters UltraEdit should count before inserting the string. If you know that each record is 200 characters long, for example, you should enter "200" here.
File offset start point
Stop insert
After the operation completes, UltraEdit reports the number of records found / strings inserted.
Example:
A database file has records of known length of 2000 characters. Each record has been output consecutively with no separation between the records. For editing purposes you want to put each record onto a single line.
Using Insert string at every increment, you can specify the string to insert is "^p" (insert a newline - paragraph) and that the increment at which to insert the string is every 2000 characters.
UltraEdit will add the new line at the end of each record until the end of file is encountered.