Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!floyd!clyde!ihnp4!inuxc!pur-ee!uiucdcs!futrelle From: futrelle@uiucdcs.UUCP (futrelle ) Newsgroups: net.lang.c Subject: Re: EOF with fgets() - (nf) Message-ID: <3671@uiucdcs.UUCP> Date: Thu, 3-Nov-83 22:26:43 EST Article-I.D.: uiucdcs.3671 Posted: Thu Nov 3 22:26:43 1983 Date-Received: Mon, 7-Nov-83 01:31:53 EST Lines: 11 #R:emory:-118500:uiucdcs:27600029:000:363 uiucdcs!futrelle Nov 3 16:59:00 1983 Try writing a program that JUST reads lines from a file and checks. Try omitting your variable definitions. I had a similar error once, and found it was because I had defined an integer variable called read, so that whenever I used getc() the program bombed with an illegal instruction error. When I took out the definitions, the program worked! Joe Futrelle