This comprehensive tutorial teaches basics of files and different types of files and their attributes. Simple C language programs are provided on how to write simple text/binary files in C language. At the end it also teaches how to store complete objects into a file are restore them back.