I made this macro that converts files with fixed lengt records into CR+LF delimited file.
After running the macro, you can use the "Remove trailing spaces" option in the User menu.
// Convert a file with fixed lengt records into text file with newlines.
// Usage:
// 1. Load the file into Vedit
// 2. Select "Config" -> "File handling" and
// set correct values to "File Type" and "Record Header size"
// 3. Run this macro.
//
#10 = Config(F_F_TYPE) // Record length
#11 = Config(F_REC_HEAD) // Record header size
if (#10<3) {
Statline_Message("Already newline delimited file")
Return
}
// Change file type to CR+LF delimited
Config(F_F_TYPE, 0)
Config(F_REC_HEAD, 0)
// Add newlines
BOF
Char(#11)
Ins_Newline
While(!At_EOB) {
Char(#10)
Ins_Newline
}
--
Pauli