streamreader
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 分类:问答ASP.NET MVC: Can an MSI file be returned via a FileContentResult without breaking the install package?
I\'m using this code to return a FileContentResult with an MSI file for the user to download in my ASP.NET MVC controller:[详细]
2022-12-22 03:01 分类:问答Why is this StreamReader only reading one line?
The following piece of code should read each line of the file and operate on it. However, it only reads the first line. Without the for loop it reads the whole file. I honestly have no idea why it\'s[详细]
2022-12-21 20:59 分类:问答Can I use a StreamReader to read from a file in Silverlight?
I\'m trying to read in some sample data from an XML file in a Silverlight project, and this line: using (TextReader reader = new StreamReader(@\"C:\\Users\\mike\\Documents\\Visual Studio 2008\\Projec[详细]
2022-12-21 17:15 分类:问答Under High load XDocument.Parse Creating errors
I am trying to access this webservice, The problem is that sometimes XDocument.Parse is not able to process and generates an error System.Xml.XmlException: Root element is missing.on the line:[详细]
2022-12-21 16:07 分类:问答Reading EML files from Windows SMTP service. Any reason not to use StreamReader?
I\'m going to be reading and parsing the EML files dropped by the Microsoft SMTP service.I am a newbie to using the various stream classes.The implementation I have seen that parses these files uses a[详细]
2022-12-21 04:45 分类:问答Create csv file as a StreamReader on the fly
I would like to unit test the following method public IEnumerable<T> GetData<T>(S开发者_如何学CtreamReader fileStream) where T : new()[详细]
2022-12-19 01:11 分类:问答Why cannot System.IO.StreamReader read from my custom stream?
I\'m in the process of creating a custom stream for an API endpoint in my app. The stream needs to have custom logic that I don\'t want to get 开发者_运维百科into, but suffice to say I can\'t use a bu[详细]
2022-12-18 06:13 分类:问答StreamReader complains that file does not exist, but it does
I have开发者_如何学Go an application that is localized for use across Europe. I have a menu option that loads a file from disk.[详细]
2022-12-18 01:37 分类:问答How to parse a text file?
Basically I need someone to help m开发者_如何转开发e or show me the code that will allow me to read a name and a price from a file i have called c1.txt.[详细]
2022-12-17 12:46 分类:问答