A IFormatProvider object for a specific culture, or the formatting of the current culture if no other culture is specified.
The value of the TextWriter.FormatProvider property specifies the culture-specific formatting that is used when you call the erload:System.IO.TextWriter.Write and erload:System.IO.TextWriter.WriteLine methods. If you do not want to provide a format provider, you create an instance by using the TextWriter.#ctor constructor, which sets the TextWriter.FormatProvider property to null. When the TextWriter.FormatProvider property contains null, the culture of the current thread is used for formatting.
For an example of creating a file and writing text to a file, see [<topic://cpconwritingtexttofile>]. For an example of reading text from a file, see [<topic://cpconreadingtextfromfile>]. For an example of reading from and writing to a binary file, see [<topic://cpconReadingWritingToNewlyCreatedDataFile>].
For a list of common I/O tasks, see Common I/O Tasks.