I have a super basic question but I can't seem to found an answer to this. Perhaps I'm over thinking this, and if that's the case, I apologize beforehand.
My problem lies in reading an input file filled with information that'll be printed out into invoices. This is what my assignment calls for:
"Your program should read in the entire input file data before generating any invoice. This means that you may not generate the invoices on the fly – that is as you read the data."
As it were, I currently just have this line (which is my standard for reading in a file):
FILE *input = fopen("invoice1.txt","r");
My current understanding is this is just setting a pointer to the beginning of the input file, ready to be read in, BUT doesn't actually read the file at that point. Am I wrong and this actually will read the file like I need it to? How would I accomplish simply reading through the file without saving the information anywhere?
Thank you!