Ok, quick question about reading a record from a file.
The format of the record is:
qty;cost;stockNumber;description:
The first two are ints and the last two are chars.
This how I'm reading the record:
Code:while(fscanf(fp,"%d;%d;%[^;];%[^:]:", &q, &c, stNum, desc) == 4)
Right now it is only reading up to the : (colon). The problem is that I want the colon to be included at end of the description. I tried a few things and I only get the first record go into other variables I have.
Thanks.