streamreader
How to stop a blocking StreamReader.EndOfStream on a NetworkStream
I have rather class using TcpClient that spins of a Thread doing while (!streamReader.EndOfStream) {} on the NetworkStream. As long as the TCP connection is open and there is no available data to read[详细]
2023-02-22 13:34 分类:问答F# - The type was expected to have type Async<'a> but has string -> Asnyc<'a> instead
After shamelessly pilfering a code snippet from Tomas Petricek\'s Blog: http://tomasp.net/blog/csharp-fsharp-async-intro.aspx[详细]
2023-02-22 00:47 分类:问答C# - StreamReader SecurityException Process OpenFileDialog related Errors on WinForms Application
Hey Everyone, Background: I\'m developing a WinForms application using C# with an OpenFileDialog, FileBrowserDialog that will convert multiple files from excel to 1 csv file using a command line exec[详细]
2023-02-18 13:58 分类:问答null reference in streamreader
hello i had this code and it worked well: private vo开发者_JAVA百科id Textparsing() { using (StreamReader sr = new StreamReader(Masterbuildpropertiespath))[详细]
2023-02-17 06:38 分类:问答C# StreamReader marking question
What I am trying to do is remember where I am in an input stream and later go back there. It is very simple in java using mark() and reset(), but I do not know how to make possible this in c#. There i[详细]
2023-02-15 01:53 分类:问答error while redirecting process input from file
I\'m receiving an output error while trying to redirect a process input from a file - reading the file content and writing it to the process input.[详细]
2023-02-14 16:14 分类:问答c# - end of stream reader showing value 65536 ('.')
I have created a StreamReader that uses a FileStream.At the end of the StreamReader method, when using the Peek() method, I see the numeric value 65535.When converted to a char represents a period \'.[详细]
2023-02-13 23:44 分类:问答How to display part of a line in a .txt file - C#
I\'m need of some basic help. I\'ve got a Folder, in which there is a File. In the File, there are two lines, and the data in the lines is seperated with a \"//\".[详细]
2023-02-13 12:53 分类:问答How can I detect if a .NET StreamReader found a UTF8 BOM on the underlying stream?
I get a FileStream(filename,FileMode.Open,FileAccess.Read,FileShare.ReadWrite) and then a StreamReader(stream,true).[详细]
2023-02-10 13:51 分类:问答Edit a text file over FTP in C#?
I want to, basically, use the following code to edit a C# file: var file = new StreamReader(\"ftp://xxx.xxx.x.x/xxx.txt\"); //[开发者_开发百科ip address/file][详细]
2023-02-10 11:05 分类:问答