Article View: comp.sys.amiga.tech
Article #5709Re: Indicating end of file
From: Simon Raybould
Date: Tue, 09 Oct 1990 13:00
Date: Tue, 09 Oct 1990 13:00
31 lines
2016 bytes
2016 bytes
In article <ben.2920@epmooch.UUCP> ben@epmooch.UUCP (Rev. Ben A. Mesander) writes:
>>In article <14935@cbmvax.commodore.com> jesup@cbmvax.commodore.com (Randell Jesup) writes:
>> There is no "end of file" character in amigados.
>
>What is ctrl-\ then? Does it not indicate EOF to a stream that is connected
ctrl-\ is not an end of file character !!!!
ctrl-\ has nothing to do with files !
It is interpreted as meaning the end of input from the console and that is all.
It causes the corresponding read on that console to return 0 which is not an
error, but no bytes were read. This is then interpreted by the application as
meaning there is no more data to read from this source. It is not an end of
file marker because the only things it applies to are NOT files.
An End Of File character is the ^Z you see in MSDOS files and old CPM stuff.
So I will back up Randell ->
There is no "end of file" character in amigados.
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| British Telecom Fulcrum | name : Simon John Raybould {^.^} |
| Fordrough Lane | path : sie@fulcrum.bt.co.uk \~/ |
| Birmingham +-----------+--------------------------|
| B9 5LD | // | AMIGA B2000 |
| ENGLAND | \X/AMIGA | Lattice C V5.05 |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-+
Technical Details
Message-ID:
<_AV%$_*@masalla.fulcrum.bt.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!axion!masalla.fulcrum.bt.co.uk!sieReferences:
<1990Oct3.172801.26802@jato.jpl.nasa.gov> <1493 <ben.2920@epmooch.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!axion!masalla.fulcrum.bt.co.uk!sie From: S.J.Raybould@fulcrum.bt.co.uk (Simon Raybould) Newsgroups: comp.sys.amiga.tech Subject: Re: Indicating end of file Message-ID: <_AV%$_*@masalla.fulcrum.bt.co.uk> Date: 9 Oct 90 13:00:36 GMT References: <1990Oct3.172801.26802@jato.jpl.nasa.gov> <1493 <ben.2920@epmooch.UUCP> Sender: root@fulcrum.bt.co.uk (Root on Masalla) Organization: BT Fulcrum, Birmingham Lines: 31 Disclaimer: Organisation given for identification purposes only