[Solved] How to read line by line from file
As you saw, your function read_ins is always outputting the first line of your file program.txt. This is because each time you open the file using fopen, the read cursor is starting from the beginning of the file. To change this behavior, you should open the file and give the FILE* as an argument of … Read more