Writing a Text-File indexing tool from scratch using C to develop a understanding of low level programming