Ok so i have a text file database.txt.
Each line is a user with the format below
\"John Smith\"| 4| 80.00| \"123 Lollipop Lane\"| \"New Jersey\"| \
You have to use fgets, instead of fscanf!The fscanf reads until it meats \n (new line) character ,whereas you can use fgets to read all lines with the exact same code you used! Hope that helped :)
fscanf