I’m projecting a c language program, the objective of my program is to create a
self-service restaurant, in particular I have a text external file. With my IDE I have to import the
text file with the variable fopen.
In the external file I have a list with a different types of food, and every type of food has
his characteristics.
The program has to do some specific questions about intolerances etc. at the user.
My problem is to create a connection between the program and the questions, with the text external file.
I have tried with IF variable, then i found in a c language book a new type of
variable: fscanf e fgets, but also this variables wasn’t ok. Do you know others ways to solve the problem?
Chiara Orsatti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.