On Nov 9, 6:30*pm, James Kuyper <jameskuy...@verizon.net> wrote:
> On 11/09/2011 11:24 AM, Willem wrote:
>
> > They are not ASCII files. *They are binary files with chunks that are
> > identified by a 4-byte header which has meaning when read as ASCII.
>
> That makes it harder; the conversion utility would have to know about
> the file format. It's still not impossible, but obviously far less
> convenient.
>
It would be easy enough to write such a utility for IFF files, because
they have a structure whereby you have a "chunk" length, and
identifier telling you what sort of chunk it is. So you can just skip
through all the chunks, changing the identifier tags from ASCII to
EBCDIC.
But then you'd have two file formats, identical except for the tags,
and the potential for extra costs and incompatibilities would be
large. A bit like the decision to encode newline/carriage return as
just a newline. It saved a byte, but to this day text files won't
display properly on Windows as a result.
--
MiniBasic - a fully functional Basic interpreter, written in ANSI C.
http://www.malcolmmclean.site11.com/www