Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 49:48:07 |
Calls: | 583 |
Files: | 1,138 |
Messages: | 111,303 |
When writing text files intended for a CP/M environment, I've been
padding them with $1A characters such that the length is a multiple
of 128 bytes.
Is this necessary - or will CP/M emulators and/or file transfer tools automatically do this? I know MYZ80 pads with $1A. Is that true of
others?
As a compromise I was considering terminating such files with a single
$1A character. That should at least avoid problems with 'junk fill'.
Any observations or thoughts? Thanks.
A properly written program will stop at the EOF marker ($1A), so there is no need to pad additional $1As after the first one.-a All that data is 'don't care' mode as it will never be processed. That's the way I've always done it.
...
On 23/07/2025 4:37 am, John wrote:
A properly written program will stop at the EOF marker ($1A), so there is no need to pad additional $1As after the first one.? All that data is 'don't care' mode as it will never be processed. That's the way I've always done it.
...
I think I'll do that from now on. Padding the file length out to a record was done out of an abundance of caution. But if nobody else has found it necessary, then it's less work for me. I had a utility to pad files but being an extra step, it was more hassle than worth.