streamreader
randomly select a line in a textfile c# streamreader
Hi I am reading from a text file and would like each line to be put into a seperate variable. From what I remember from my programming classes arrays cannot be dynamic. So if I set 15 arrays, and the[详细]
2023-02-09 13:37 分类:问答StreamReader and reading an XML file
I get a response from a开发者_如何学编程 web-server using StreamReader... now I want to parse this response (it\'s an XML document file) to get its values, but every time I try to do it I get a error:[详细]
2023-02-07 17:55 分类:问答Extension Method from String to TextReader... how do I close the stream?
Is it possible t开发者_开发技巧o create an extension method similar to this?How should I handle Closing() the stream when finished?[详细]
2023-02-06 05:05 分类:问答C# "using" blocks
I\'ve got something like the code below...someone here mentioned that the WebClient, Stream, and StreamReader objects could all benefit from using blocks.Two easy questions:[详细]
2023-02-05 19:39 分类:问答cannot remove backslashes added by streamReader.ReadLine - c sharp
the text I\'ve got from the file has the following string: 1\"-DC-19082-A3 after getting that line I get the following string (got it while debugging): \"\\\"1\\\"\\\"-DC-19082-A3\\\"\"[详细]
2023-02-02 16:19 分类:问答How to convert the encoding type of a stream in .NET?
I ve the following stream but I don\'t know its encoding type because the stream reader detects encoding from byte order marks[详细]
2023-02-01 14:16 分类:问答Understanding WebRequest
I found this snippet of code here that allows you to log into a website and get the response from the logged in page. However, I\'m having trouble understanding all the part of the code. I\'ve tried m[详细]
2023-02-01 07:19 分类:问答How reading messages from Server? (tcp)
Client write to server - server read. and Server write to client - client not read. Server: using System;[详细]
2023-01-31 18:12 分类:问答StreamReader ReadToEnd() returns empty string on first attempt
I know this question has been asked before on Stackoverflow, but could not find an explanation. When I try to read a string from a compressed byte array I get an empty string on the first attempt, on[详细]
2023-01-31 03:12 分类:问答C# MySQL database restore
I am trying to restore MySQL database data from a dump file, using C# codes. I am suppose to execute the following command:[详细]
2023-01-30 10:34 分类:问答