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.

Does disposing streamreader close the stream?

I am sending a stream to methods to write on, and in those methods I am using a binary reader/…

c# stream streamreader
Load a simple text file in Android Studio

Got a brand new project using Google's new Android Studio IDE. I'm trying to load a simple text file using …

android android-studio assets streamreader
An elegant way to consume (all bytes of a) BinaryReader?

Is there an elegant to emulate the StreamReader.ReadToEnd method with BinaryReader? Perhaps to put all the bytes into a …

c# .net stream streamreader binaryreader
Getting path to the parent folder of the solution file using C#

I am a beginner in C#, and I have a folder from which I am reading a file. I want …

c# file path io streamreader
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 …

c# .net xml streamreader
Read text file from C# Resources

I need to read a file from my resources and add it to a list. my code: private void Form1_…

c# file-io resources streamreader
How to skip first line while reading csv using streamreader

I have my following code to read values from CSV file and do some processing. I would like to skip …

c# asp.net streamreader
Is there a better way to count the lines in a text file?

Below is what I've been using. While it does work, my program locks up when trying to count a rather …

vb.net visual-studio-2010 text-files streamreader
How can I tell when I've reached the end of the file when using the ReadBlock method in C#?

I noticed that it will keep returning the same read characters over and over, but I was wondering if there …

c# streamreader readblock
How do I open an already opened file with a .net StreamReader?

I have some .csv files which I'm using as part of a test bench. I can open them and read …

.net file streamreader readonly