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 should put a blank after specifier "%[^\n] " or use "%[^\n]\n". Both will allow you to skip the newline character.
fscanf(database, "%[\n] ", buffer);
or
fscanf(database, "%[\n]\n", buffer);