C file access question

Paul John Falstad pfalstad at phoenix.Princeton.EDU
Fri Sep 14 16:39:52 AEST 1990


In article <28 at screamer.csee.usf.edu> stelmack at screamer.csee.usf.edu (Gregory M. Stelmack) writes:
>db = fopen("dd.data","rb+"); /* db is checked to make sure file opened */

Try this:

 db = fopen("dd.data","r+b");

With that fix, your program works fine on the Sun here.

  I think there should be more race prejudice.  <slap> LESS race prejudice.



More information about the Comp.lang.c mailing list