User Tools

Site Tools


code_snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
code_snippets [2009/01/11 01:30] – created stephencode_snippets [2009/01/15 00:01] (current) – removed stephen
Line 1: Line 1:
-===== C# ===== 
- 
-==== I/O ==== 
- 
-=== Read Entire File into a String === 
- 
-...in one easy step. 
- 
-<code c#> 
-String wholeFile = File.ReadAllText(@"C:\Temp.txt"); 
-</code> 
- 
-=== Filename to StreamReader === 
- 
-...in one easy step. 
- 
-<code c#> 
-StreamReader sr = File.OpenText(@"C:\Temp.txt"); 
-</code> 
- 
  
code_snippets.1231637411.txt.gz · Last modified: 2017/01/01 19:48 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki