C program to write a sentence to a file
In this we are writing the a line entered by user into the mentioned file.
If file opened successfully, we are reading the user input using fgets() function and writing into the file using fprintf() function.
In the end we are closing the file using fclose() function.