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 read embedded resource text file

How do I read an embedded resource (text file) using StreamReader and return it as a string? My current script …

.net embedded-resource streamreader
How to Find And Replace Text In A File With C#

My code so far StreamReader reading = File.OpenText("test.txt"); string str; while ((str = reading.ReadLine())!=null) { if (str.Contains("…

c# .net io streamreader file-handling
How do you send an HTTP Get Web Request in Python?

I am having trouble sending data to a website and getting a response in Python. I have seen similar questions, …

python http streamreader webrequest
Converting file into Base64String and back again

The title says it all: I read in a tar.gz archive like so break the file into an array …

c# base64 streamreader system.io.fileinfo
Reading large text files with streams in C#

I've got the lovely task of working out how to handle large files being loaded into our application's script editor (…

c# .net stream streamreader large-files
Should I call Close() or Dispose() for stream objects?

Classes such as Stream, StreamReader, StreamWriter etc implements IDisposable interface. That means, we can call Dispose() method on objects of …

c# stream idisposable streamreader streamwriter
C# read line from file with StreamReader with DownloadFileAsync

I am having a problem reading file with StreamReader and while line != null add to textBox1 Code: using(StreamReader reader = …

c# streamreader readline webclient-download
How to read a large (1 GB) txt file in .NET?

I have a 1 GB text file which I need to read line by line. What is the best and fastest …

c# .net streamreader
How do I convert StreamReader to a string?

I altered my code so I could open a file as read only. Now I am having trouble using File.…

c# streamreader
How To Use HttpWebRequest/Response To Download A Binary (.exe) File From A Web Server?

I am writing a program that needs to download an .exe file from a website and then save it to …

c# stream httpwebrequest streamreader httpwebresponse