I am trying to learn c programming, so far i'm able to write simple programs, My problem is how to write the data generated to files and retrieve them later. the difference between text and binary files is vague to me, i was able to write my non character data to a text file but is at a lost on how to retrieve it. Are data sent to files indexed according to their original variable index. I read that fscanf is used to retrieve data from files but i dont know to which part of the syntax i should write the variable index. the concept of pointers is foreign to me. Is this what pointers are for? if so, please educate me on pointers, i've been reading on the topic but is at a lost on how to use it.