Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!cmcl2!brl-adm!adm!KINGLEON%HUMBER.BITNET@wiscvm.wisc.EDU From: KINGLEON%HUMBER.BITNET@wiscvm.wisc.EDU (Leon King) Newsgroups: comp.lang.c Subject: File input problem Message-ID: <8076@brl-adm.ARPA> Date: Sun, 28-Jun-87 12:04:36 EDT Article-I.D.: brl-adm.8076 Posted: Sun Jun 28 12:04:36 1987 Date-Received: Sun, 28-Jun-87 18:37:37 EDT Sender: news@brl-adm.ARPA Lines: 22 Frustrating problem with code that worked before: I'm using VAX C on a 750. I'm trying to read in a sequential file with varying length records, maximum size 3600. The first 5 records are 360 bytes, the next 12 are 1800 (until byte 21632) and 3600 bytes per record thereafter. File attribute is carriage control. I open the file as follows fopen(landsat,"landsat.fil","r") and use fread(buffer,1,3800,landsat) Problem: Past byte 1800 nothing will be read in. fread returns a bytecount of zero. The contents of the file are there, (verified using DUMP) but I can't seem to get at it. Any insights?? =============================================================================== Q: How many programmers does it take to change a lightbulb? A: 3. It really only takes one to change the bulb, but two of them will probably leave in the middle of the project.