Added read file functionality in C