cs_code_snippets
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| cs_code_snippets [2009/01/11 01:23] – stephen | cs_code_snippets [2009/01/11 01:36] (current) – removed stephen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | |||
| - | ===== I/O ===== | ||
| - | |||
| - | ==== Read Entire File into a String ==== | ||
| - | |||
| - | ...in one easy step. | ||
| - | |||
| - | <code c#> | ||
| - | String wholeFile = File.ReadAllText(@" | ||
| - | </ | ||
| - | |||
| - | ==== Filename to StreamReader ==== | ||
| - | |||
| - | ...in one easy step. | ||
| - | |||
| - | <code c#> | ||
| - | StreamReader sr = File.OpenText(@" | ||
| - | </ | ||
| - | |||
cs_code_snippets.1231637038.txt.gz · Last modified: 2017/01/01 19:49 (external edit)
