Top "Streamwriter" questions

StreamWriter is designed for character output in a particular encoding, whereas classes derived from Stream are designed for byte input and output.

Append lines to a file using a StreamWriter

I want to append lines to my file. I am using a StreamWriter: StreamWriter file2 = new StreamWriter(@"c:\file.txt"); …

c# streamwriter
Create File If File Does Not Exist

I need to get my code to read if file doesnt exist create else append. Right now it is reading …

c# streamwriter
Writing file to web server - ASP.NET

I simply want to write the contents of a TextBox control to a file in the root of the web …

c# asp.net file streamwriter
Should I call Close() or Dispose() for stream objects?

Classes such as Stream, StreamReader, StreamWriter etc implements IDisposable interface. That means, we can call Dispose() method on objects of …

c# stream idisposable streamreader streamwriter
Append text using StreamWriter

This is probably a pretty simple question. In C# I'm trying to write a simple method, called my "DebugWrite" method, …

c# streamwriter
how to overwrite data in a txt file?

Possible Duplicate: Can any one tell why the previous data is still displayed while saving data using StreamWriter I have …

c# text streamwriter overwrite
Forcing StreamWriter to change Encoding

I am trying to save a file using DialogResult and StringBuilder. After making the text, I am calling the following …

c# stringbuilder streamwriter
NodeJS write binary buffer into a file

I can't rewrite a file that I am getting from a binary buffer, I have checked with the original file …

node.js binary streamwriter
Exporting datagridview to csv file

I'm working on a application which will export my DataGridView called scannerDataGridView to a csv file. Found some example code …

c# datagridview streamwriter
FileStream vs/differences StreamWriter?

Question: What is different between FileStream and StreamWriter in .Net? What context are you supposed to use it? What is …

c# io filestream streamwriter