Posted 04 June 2007 - 06:46 AM
If you want to keep the null terminated strings intact in MS-Edit, you'll need to edit the thing in binary mode.
Open it up and set the width to edit at. I generally go 100, but set it to your liking.
While you're editing, you can make each line go well beyond the end of the of the 100 characters. That's fine, just note where the end of the line actually is (hit end). Everything past the last character will be spaces (or in decimal 32's) and thus ignored by MS-Edit when you save. If you close and re-open the file, everything will line up properly again.
Coincidentally, you can tell the difference between a space and where each string ends by their ascii value. They look the same, but they possess completely different values. Check the lower right hand corner near the row and column listings. The ascii value of whatever your cursor is on will be listed there. If you see a space that gives a value of 32, that's a normal space. If it's a 0, then that's the end of the string. Keep all your edits well between the 0's, and you'll do fine.
If you accidentally overwrite a 0, MS-Edit has a very curious method of typing a 0 in. Ctrl+P+2. No, don't ask.
But as always, make a backup for recovery if things go pear shaped.
Lord High Generalissimo Ruler Supreme of Norm's Anti Pedant Society (NAPS).
Number of members: 1