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.

How to get full path of StreamWriter

I'm creating a StreamWriter using a relative path. But the file doesn't appear. To troubleshoot, I want to check that …

c# streamwriter
Implementing HttpWebRequest Async calls

I have this code using (var stream = new StreamWriter(request.GetRequestStream(), Encoding)) stream.Write(body.ToString()); I need to make …

c# asynchronous httpwebrequest streamwriter
Shortest way to save DataTable to Textfile

I just found a few answers for this, but found them all horribly long with lots of iterations, so I …

c# datatable streamwriter
Java - Writing to txt in a JAR file

Possible Duplicate: How can a Java program use files inside the .jar for read and write? How do I write …

java file-io jar executable-jar streamwriter
How to create copy of file using StreamReader and StreamWriter

I need to use StreamReader to read a .txt file on a console application, then create a new file or …

c# copy streamreader streamwriter
Save file - xmlSerializer

I'm creating a method to serialize a file using this code: public void Save(Object file, Type type, String path) { // …

c# xml serialization xml-serialization streamwriter
Can I write a file to a folder on a server machine from a Web API app running on it?

I have this code in my Web API app to write to a CSV file: private void SaveToCSV(InventoryItem invItem, …

c# asp.net-web-api file-permissions streamwriter file-processing
Why do I get System.Collections.Generic.Dictionary`2 when writing to a StreamWriter?

I have this code: Console.Title = "System Reader"; Console.WriteLine("Enter the Domain-Address <or local>:"); string domain = Console.…

c# dictionary streamwriter textwriter
VB - Writing to a file with StreamWriter

I'm trying to write to a file using the StreamWriter. Dim write as IO.StreamWriter write = new io.streamwriter(file) …

vb.net debugging streamwriter file-in-use
How to write lines to a text file thread safe - multi threading

I just tried this and it failed public MainWindow() { InitializeComponent(); } private void Button_Click_1(object sender, RoutedEventArgs e) { Task.Factory.…

c# multithreading file-io thread-safety streamwriter