streamreader
How to interrupt an IO bound thread
I am opening a System.Diagnostic.Process to read the stdout from a process and I would like to be able to interrupt it after a certain elapsed time.[详细]
2023-01-22 17:17 分类:问答problem with opening a file in C#
What am I doing wrong in the following code? public string ReadFromFile(string text) { string toReturn = \"\";[详细]
2023-01-21 00:02 分类:问答Search line in *.CSV-
I can\'t belive, the easiest task won\'t work! I just want to loop through a csv file by using the StreamReader-Class and find a key in a associative line.[详细]
2023-01-16 07:43 分类:问答Do I need to Dispose XmlReader if I Dispose its underlying Stream?
I have the following method GetData that creates a StreamReader from a file. private void GetData(string file)[详细]
2023-01-12 08:45 分类:问答c# stop a streamreader after a few seconds. Is this possible?
I have web request and i read information with streamreader. I want to stop after this streamreader after 15 seconds later. Because sometimes reading process takes more time but sometimes it goes well[详细]
2023-01-10 13:51 分类:问答How to read embedded resource text file
How do I read an embedded resource (text file) using StreamReader and return it as a string?My current script uses a Windows form and textbox that allows the user to find and replace text in a text fi[详细]
2023-01-08 17:42 分类:问答How do I load a file that I bundled with the install of my C# program?
I need to do something like this: StreamReader reader = new System.IO.StreamReader(@\"C:\\Program Files\\The Awesome Program That I Made\\awesomeloadablefile.ldf\");[详细]
2023-01-06 12:13 分类:问答StreamReader and buffer in C#
I\'ve a question about buffer usage with StreamReader. Here: http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx you can see:[详细]
2023-01-05 09:14 分类:问答is there a way to remove the first line from a StreamReader
i have a streamreader which loads up a csvfile, the issue is that there is one extra row at the top of the data that i want to ignore.[详细]
2023-01-04 19:56 分类:问答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 分类:问答