fixes csv headers
This commit is contained in:
parent
e9014258a8
commit
43e69fa342
@ -112,7 +112,7 @@ void write_to_file(book_t* book)
|
||||
if (0 != file_exists) {
|
||||
file = fopen(FILE_NAME, "w");
|
||||
// write the csv headers to the file since we're making it
|
||||
fprintf(file, "id,isbn,title,authors,imageurl,year of publication,page length\n");
|
||||
fprintf(file, "id,isbn,title,authors,imageurl,year-of-publication,page-length\n");
|
||||
book_id = 1;
|
||||
} else {
|
||||
file = fopen(FILE_NAME, "a");
|
||||
|
Loading…
x
Reference in New Issue
Block a user