I have a table format in a file. I want to print it using fscanf. The table looks like this with 6 columns and 4 rows.
Name Date Opening Amount Type Closing
Thiluxan 21.05.2015 8500 4500 Withdrawal 4000
Black 05.02.2014 7896 6548 Withdrawal 1348
Whitee 02.05.2015 8524 256394 Deposit 264918
FILE *file1;
file1 = fopen("Bank.txt","r");
while(fscanf(file1, "%s %s %s %s %s %s", text) != EOF ) {
printf("%s\n", text);
}
fclose(file1);
The output doesn't show anything and it returns a blank screen