EOF location?



Anyone know where the EOF is supposed to be located on a PC file?

In other words, if Windows reports a file is, say, 100 bytes long, is the
EOF (X'1A') supposed to be in the 100th or 101st byte?

I've got copy books with both conditions and I suspect this inconsistency is
screwing up PowerCOBOL's "#INCLUDE" commands. (I suspect this because I get
the dreaded "...error in .SVD file according to INCLUDE or COPY turnip...")

Diligent research reveals I've got 107 copy books of which 33 have the EOF
beyond the size reported by Windows and 74 files where the Windows-reported
length includes the EOF.

And shouldn't a copy book end with a CR or LF?

It's a mystery...

I'm going to have a lie-down.


.



Relevant Pages

  • Re: Obtaining Last Logon Time for Domain User
    ... Subject: Re: Last time each NT account was accessed ... > framework 1.1 to run this tool (you can get it from Windows Update). ... >> goto:EOF ...
    (microsoft.public.windows.server.active_directory)
  • Re: Question about the getchar() and eof !!!...
    ... It seems there is, in fact, an EOF character in Windows. ... will print a character with code 65 (ascii 'A'), ...
    (comp.lang.c)
  • Re: EOF location?
    ... I was confusing EOR with EOF in a line sequential file. ... EOF in modern windows systems is recognised from the file size ... *> Create a simple text file with the characters 1 thru 8... ...
    (comp.lang.cobol)
  • Re: EOF location?
    ... Sorry PD, CR/LF has never, and will never indicate EOF. ... Modern windows "command window" do NOT insert ... It would appear that there are three more characters than we actually ... Copying a console stream is NOT the same thing at ...
    (comp.lang.cobol)
  • Re: Question about the getchar() and eof !!!...
    ... It seems there is, in fact, an EOF character in Windows. ... How DOS or Windows interprets it is another matter. ... DOS or Windows compiler might emit ascii 26 when handed EOF. ...
    (comp.lang.c)