MEDIA - how Pascal handles various media codes.

If an input file has the type "text", the file must have records with Media codes 0, 1, 2, 3, 6, 7, 11, 12 or 15. The effect of reading other media codes is not defined.

Media codes 0, 1, 2, 3 or 11 are interpreted as BCD and transliterated to ASCII. Compressed format (COMDK) media 1 files can also be read. Non-text files are expected to be Media 1 binary, as generated by another Pascal program or by an unformatted write in a Fortran program.

If a file is declared with "packed file of T" (where T is any type), Media 4 will be used for both reading and writing.

Copyright © 1996, Thinkage Ltd.