tobold.org

correct • elegant • free

△ Comp.lang.c △

◅ Problems with the & and && operators

Book Suggestion ▻

Multiple EOF's when scanning a file.

In article <389A6BD9.201549C7@cs.nmt.edu>,
Jeff Shipman  <shippy@cs.nmt.edu> wrote:
>Hey, I'm trying to parse a web server access log, but while I'm
>reading it in I'm hitting an EOF right in the middle. So,
>I can't get all of the file. I'm sure there's some way to
>get around it. Could somebody suggest something?

It would be useful to see some code, or the log, or the details of your
system, or *anything*.

One possibility is that you are on a machine where text and binary
streams are different, you've opened the log as text, and you need
binary.

Tim.
--
Tim Goodwin   | "If you don't know what closures are, you probably don't
Leicester, UK | want to know what closures are." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.lang.c
Subject: Re: Multiple EOF's when scanning a file.
Date: 9 Feb 2000 15:27:47 -0000
Message-ID: <87s129$rj2$1@ltpcg.star.le.ac.uk>
References: <389A6BD9.201549C7@cs.nmt.edu>

△ Comp.lang.c △

◅ Problems with the & and && operators

Book Suggestion ▻