The file that I am trying to read has the following contents:
192.168.1.1
48111
test.out
100
25
I am trying to use fscanf to read it line by line and storing each line in a variable. This works if I just have a couple of int variables, but it does not work for the above which also has an IP address and a file name. I tried saving the IP as a string but it just outputs garbage. Any suggestions?