hi,
Look
here[
^] for difference between gcc and cc .
there are plenty of tutorials on internet about reading the text file in C .Like
this one[
^]. or
here[
^]
For your queries try to google it out first(this will save time) and for coding questions show your code and show what you tried already(thus people here will be able to give you better guidance). I don't mean to be rude, just a suggestion:)