C# StreamWriterC# StreamWriter class is used to write characters to a stream in specific encoding. It inherits TextWriter class. It provides overloaded write() and writeln() methods to write data into file. C# StreamWriter exampleLet's see a simple example of StreamWriter class which writes a single line of data into the file. Output: File created successfully... Now open the file, you will see the text "hello c#" in output.txt file. output.txt: hello c# Next TopicC# StreamReader |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India