GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #11286

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Tom Schneider
Subject: EOF is not true on reset empty file
Date: 27 Jan 2005, 02:49:12

I wrote before:

> EOF is not true on a reset empty file.

for GPC.

gpc 20040516, based on gcc-3.3.3

I just found in the book 

PASCAL User Manual and Report, Fourth Edition
ISO Pascal Standard,
Kathleen Jensen and Niklaus Wirth
1991
page 158:

   "A file is called \emph{empty} if its length is zero."

As you can see in the previous email, I created two empty files with
echo -n "" > filename and then showed by three tests (file, ls and wc)
that they were empty.  In the GPC compiled program, I reset each file
and then tested them and found that each was not at eof.

Regards,

Tom

  Dr. Thomas D. Schneider
  National Cancer Institute
  Laboratory of Experimental and Computational Biology
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  toms@ncifcrf.gov
  permanent email: toms@alum.mit.edu (use only if first address fails)
  http://www.lecb.ncifcrf.gov/~toms/

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Rick Engebretson EOF is not true on reset empty file 27 Jan 2005, 09:01:55
Maurice Lombardi EOF is not true on reset empty file 27 Jan 2005, 17:41:49
Maurice Lombardi EOF is not true on reset empty file 27 Jan 2005, 19:29:07
Emil Jerabek EOF is not true on reset empty file 28 Jan 2005, 13:27:52
Frank Heckenbach EOF is not true on reset empty file 28 Jan 2005, 14:16:50
jan.ruzicka@comcast.net EOF is not true on reset empty file 29 Jan 2005, 07:04:31

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).