User Tools

Site Tools


cs_code_snippets

This is an old revision of the document!


I/O

I/O

Read Entire File into a String

…in one easy step.

String wholeFile = File.ReadAllText(@"C:\Temp.txt");

Filename to StreamReader

…in one easy step.

StreamReader sr = File.OpenText(@"C:\Temp.txt");
cs_code_snippets.1231637019.txt.gz · Last modified: 2017/01/01 19:49 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki