Thread View: comp.sys.ibm.pc.programmer
1 messages
1 total messages
Started by marc.d.sayre
Mon, 21 Jan 1991 15:44
fopen in Turbo-c
Author: marc.d.sayre
Date: Mon, 21 Jan 1991 15:44
Date: Mon, 21 Jan 1991 15:44
32 lines
1264 bytes
1264 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads