File Handling - Reading a line from text file into a character array using fgets function