Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!lll-lcc!pyramid!voder!blia!forrest From: forrest@blia.UUCP Newsgroups: comp.lang.c Subject: Re: Help needed -> fseek() and ftell() in VMS VAX C Message-ID: <1647@blia.BLI.COM> Date: Thu, 12-Feb-87 12:23:32 EST Article-I.D.: blia.1647 Posted: Thu Feb 12 12:23:32 1987 Date-Received: Fri, 13-Feb-87 20:35:33 EST References: <384@umnd-cs-gw.umnd-cs.UUCP> Organization: Britton Lee, Los Gatos, CA Lines: 20 Summary: Watch out for record boundaries In article <384@umnd-cs-gw.umnd-cs.UUCP>, jwabik@umnd-cs.UUCP (Jeff Wabik) writes: > I'm trying to fseek my way around a large (1.5MB) file using VAX VMS C, > and am having absolutely NO LUCK. > Beware that seeking in non-stream files in VMS doesn't work the way you'd expect based on Unix experiences. (See page 15-15 of the "Programming in C" Manual.) If you think about it, this makes sense for variable length record length files since you have to know the record length for each record to be able to seek over it. Although they could have provided a slow method for doing forward seeking, doing backward seeking would be more trouble than it's worth. Unix would have the same problem if they used variable length record files, I believe. What pisses me off is that seeking also doesn't work right with fixed length record files. I don't understand the reasoning behind this. Jon Forrest ucbvax!mtxinu!blia!forrest