This part of C always gets me...it shouldn't...but it does, so here I go:
I've looked everywhere but I can't find the answer anwhere
void Arrays (int numArray[], int quantity[])
{
FILE *fp;
fp = fopen("stock.da t", "rb+");
fclose(fp);
}
if I wanted to put the data from the file into the two arrays how would I go about doing this? I can only find the explanations of to read in one..how would I go about reading the record layout in?
I've looked everywhere but I can't find the answer anwhere
void Arrays (int numArray[], int quantity[])
{
FILE *fp;
fp = fopen("stock.da t", "rb+");
fclose(fp);
}
if I wanted to put the data from the file into the two arrays how would I go about doing this? I can only find the explanations of to read in one..how would I go about reading the record layout in?
Comment