I\'m writing an application in C# (it\'s very basic, for a friend of mine), but I have a StreamWriter object that creates a local file in C:. I have to do Run as Administrator, and it works fine, but
So I\'m using a StreamReader that uses a MemoryStream to write to a StreamWriter and insid开发者_JS百科e of this application but the memory usage increases by 300mb (From one of the larger inputs) and
So here is my code if (!File.Exists(pa开发者_StackOverflow中文版thName)) { File.Create(pathName); }
I have a winform with two data grids, and multiple text boxes.I want to give the user the option to export this data to a text document in a location of their choice on their drive.I also want the tex
What is the difference between instantiating a Stream object, such as MemoryStream and calling the memoryStream.Write() method to write to the stream, and instantiating a StreamWriter object with the
I\'m trying to create a new log file every hour with the following code running on a server. The first log file of the day is being created and written to fine, but no further log files that day get c
i want simultaneously read and write data into file.Can i use StreamReader and StreamWriter with only file? And why code below doesnt out numbers?
Following on from my previous question... The following code creates log files on a web server: private void LogMessage(Message msg)
System.Diagnostics.Process exposes a St开发者_开发技巧reamWriter named StandardInput, which accepts only characters as far as I know.
I am using an external library which allows logging using StreamWriter - 开发者_JS百科now I want to add some handling based on the content of the logging. As I want to avoid to loop through the log fi