Question: How do I read a file in the format int string per line in C? I want to store the int in a variable and
How do I read a file in the format int string per line in C? I want to store the int in a variable and the string in a variable within a while loop that loops until end of file.
Example of the contents in the text file:
3 How many apples I bought from the grocery store
2 How many apples I ate
...
Please show code and explain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
