C Program to Read a Line From a File and Display it

This program reads text from a file and stores it in a string until entering the ‘newline’ character is encountered.

Example: Program to read text from a file