C Program to Write a Sentence to a File

In this example, you’ll learn to write a sentence to a file using fprintf() statement.

This program stores a sentence entered by the user in a file.