streamwriter
Grant WPF application access to local drive?
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[详细]
2023-01-05 06:26 分类:问答C# StreamWriter and StreamReader memory managment problem, why won't memory used deallocate?
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[详细]
2023-01-04 14:11 分类:问答Program crashes after trying to use a recently created file. C#
So here is my code if (!File.Exists(pa开发者_StackOverflow中文版thName)) { File.Create(pathName); }[详细]
2023-01-01 16:40 分类:问答Exporting winform data to .txt file
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[详细]
2022-12-31 14:45 分类:问答What is the difference between calling Stream.Write and using a StreamWriter?
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[详细]
2022-12-31 07:55 分类:问答StreamWriter not creating new file
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[详细]
2022-12-23 22:54 分类:问答simultaneously read and write data into file
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?[详细]
2022-12-23 15:42 分类:问答StreamWriter stops writing when file is opened from web link
Following on from my previous question... The following code creates log files on a web server: private void LogMessage(Message msg)[详细]
2022-12-23 13:43 分类:问答How to send keys instead of characters to a process?
System.Diagnostics.Process exposes a St开发者_开发技巧reamWriter named StandardInput, which accepts only characters as far as I know.[详细]
2022-12-20 20:04 分类:问答Inheriting from StreamWriter with smallest possible effort
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[详细]
2022-12-20 09:47 分类:问答