C# TextWriter class is an abstract class. It is used to write text or sequential series of characters into file. It is found in System.IO namespace.
C# TextWriter Example
Let's see the simple example of TextWriter class to write two lines data.
Output:
Data written successfully...
f.txt:
Hello C# C# File Handling by JavaTpoint
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.