Re: EOF location?



A single 0x1A (control-Z in ASCII) is used to indicate EOF,

That is only true if the particular program tests specifically for that
character. Any file can have Ctrl-Zs scattered through them and what
happens is entirely dependent on the program.

WordStar (yes I still have that) will stop reading (WS comes from
CP/M). TYPE will also stop (it, too, comes from CP/M via MS-DOS 1).
Notepad and most other editors will read it and show a blob of some
kind - and will read all the data beyond it.

In CP/M the file size was only recorded to the nearest 128 byte record
so software filled the remainder of the last record with at least one
x'1a' and stripped that off when reading. MS-DOS/Windows has never
needed that because it recorded the size in bytes, but because it is a
clone of CP/M it has followed that convention with some programs such
as command.com and type.

similar to EOT in POSIX environments.

Except that EOT is 'End of Transmission' and has no effect of files.

.



Relevant Pages

  • Re: was there ever a CPM for ... ?
    ... reading in their literature about a CP/M upgrade. ... So I guess this would beg the question, if your floppy drive runs CP/M, ... can you really claim that the attached Atari is "running CP/M"? ...
    (comp.os.cpm)
  • Re: Microsoft Sucks!
    ... >> how many people reading this newsgroup had actually used CP/M, ... permission to use the copies of code it sells to people through third ...
    (microsoft.public.windowsxp.general)
  • ANN: DD4 CPM
    ... DD4 is a CP/M program that allows you to image disks on the real machine on 2.2 or 3.x CP/M. ... Tracks: 16, Sectors: 128, Start: 0 ... Reading 000F,007F ...
    (comp.os.cpm)
  • Re: Microsoft Sucks!
    ... > It was a joke PIP was the copy command in CP/M. ... > how many people reading this newsgroup had actually used CP/M, ...
    (microsoft.public.windowsxp.general)
  • Re: 8-bit issue - MYZ80 and non-US keyboards
    ... Uwe Nass and I have been working on making MYZ80 "more ... keyboards that require all 8 bits for their character set. ... The CP/M 2.2 BIOS supplied under the MYZ80 emulator may need to be ...
    (comp.os.cpm)