C# text file - how to write EOF character

c#

Solution

Just use the StreamWriter class, and Close the file appropriately. The EOF marker will be handled properly for you.

Problem

This has got to be an easy question but I'm not finding anything out there. I have a text file. I need to put a EOF character at the end so a third party vendor can read the file correctly. What is the escape character needed to write the end of file character? I'm not sure if I need to supply any more information, but if I do, let me know. Thanks

Original source