Top "Streamreader" questions

StreamReader is a C# class designed for character input in a particular encoding, it can be used for reading lines of information from a standard text file.

Stream read line

I have a stream reader line by line (sr.ReadLine()). My code counts the line-end with both line endings \r\…

c# newline streamreader tfilestream
How to take a stringbuilder and convert it to a streamReader?

How to take a stringbuilder and convert it to a stream? SO my stringbuilder has to be converted into a : …

c# stream streamreader
How to skip invalid characters in stream in Java/Scala?

For example I have following code Source.fromFile(new File( path), "UTF-8").getLines() and it throws exception Exception in thread "…

java scala inputstream streamreader
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 …

c# streaming buffer streamreader buffering
c# MemoryStream Encoding Vs. Encoding.GetChars()

I am trying to copy a byte stream from a database, encode it and finally display it on a web …

c# character-encoding streamreader
Adding a Line to the Middle of a File with .NET

Hello I am working on something, and I need to be able to be able to add text into a .…

c# .net streamreader streamwriter
Deserialize multiple objects from stream by json.net

Greatings! I need to deserialize a file of different objects serialized as json. Here is the resulting file: { "Number": 1, "Description": "…

c# json json.net streamreader
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 …

c# streamreader
How to read the Website content in c#?

I want to read the website text without html tags and headers. i just need the text displayed in the …

c# html httpwebrequest webclient streamreader
C# StreamReader, "ReadLine" For Custom Delimiters

What is the best way to have the functionality of the StreamReader.ReadLine() method, but with custom (String) delimiters? I'd …

c# parsing file-io streamreader delimiter