'lo everybody,
Is this the correct way to read data from a file?
I'm attempting to read all data from the file, and then to validate it. Any help offered is much appreciated.Code:while( fscanf(input, "%c, %s, %s, %d, %c, %s, %c, %6s, %s, %s, %d, %d", &i_r.rectype, &i_r.cust_code, &i_r.part_no, &i_r.ir_quantity, &del.rectype, &del.cust_code, &create.rectype, &create.cust_code, &create.cust_name, &create.cust_address, &create.cust_bal, &create.credit_limit) !=EOF)
Thanks