[alt.msdos.programmer] fopen in Turbo-c

mds1@cbnewsm.att.com (marc.d.sayre) (01/21/91)

Hi there people,

	A quick question, I am used to using c programming on a amdahl, but
	also started working on msdos Turbo-c 1.5. I am having
problems with reading and writing to a file. I am using a structure of about
8 to 10 doubles in it.


struct empdata {
	double wages;
	double	tariff;
	..
	..

	double netwages;
} EmpData;

When I am  writing and reading to a file, a lot of the time I get an fread error
19 invalid argument. I can figure it out. Does this have something to do
with using ptr=fopen("DATA","r+b"); . I have never seen  "r+b" before, but maybe
that is the problem. could somebody explain this r+b and tell me if this is
my problem.

Please respond to the above newsgroups or ihlpb!eotto, don't respond to the 
default address PLEASE.


Thanks guys .

Erick Otto
AT&T Network Systems UK