[R] detecting EOF on connection?

Andy Jacobson andyj at splash.princeton.edu
Sun Aug 24 18:19:22 CEST 2003


Hello,

        Is there an easy way of determining whether one has reached
        the end-of-file when reading a connection?  I am reading a
        binary file and I would like to know when the read fails.

        Thanks,
                Andy
-- 
Andy Jacobson

andyj at splash.princeton.edu

Program in Atmospheric and Oceanic Sciences
Sayre Hall, Forrestal Campus
Princeton University
PO Box CN710 Princeton, NJ 08544-0710 USA

Tel: 609/258-5260  Fax: 609/258-2850




More information about the R-help mailing list