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.

How to create copy of file using StreamReader and StreamWriter

I need to use StreamReader to read a .txt file on a console application, then create a new file or …

c# copy streamreader streamwriter
Tracking the position of the line of a streamreader

I need to track the position of the line that I am reading from the stream reader. When I say …

c# streamreader
Loading a .csv file into dictionary, I keep getting the error "cannot convert from 'string[]' to 'string'"

I've used streamreader to read in a .csv file, then i need to split the values and put them into …

c# dictionary streamreader
.NET C# - Random access in text files - no easy way?

I've got a text file that contains several 'records' inside of it. Each record contains a name and a collection …

c# text streamreader random-access
Get length of Streamreader

How can I get the length of a StreamReader, as I know nothing will be written to it anymore. I …

c# streamreader memorystream
Memory Leak using StreamReader and XmlSerializer

I've been googling for the past few hours and trying different things but can't seem to the bottom of this.... …

c# xml streamreader xmlserializer
How to properly handle blank, null, or empty lines in C#

I have some C# code that is working with a text file, and i can not seem to get it …

c# streamreader unexpectendoffile
Httplistener and file upload

I am trying to retrieve an uploaded file from my webserver. As the client sends its files through a webform (…

c# parsing streamreader httplistener httplistenerrequest
How to limit the number of characters read by StreamReader.ReadLine() in .NET?

I am writing a web server application in C# and using StreamReader class to read from an underlying NetworkStream: NetworkStream …

c# readline streamreader ddos
Difference between StreamReader.Read and StreamReader.ReadBlock

The documentation simply says ReadBlock is "a blocking version of Read" but what does that mean? Someone else has asked …

c# io streamreader