public static string getFileAsString(string fileName) { StreamReader sReader = null; string contents = null; try { FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read); sReader = new StreamReader(fileStream);
Be Different with excellent knowledge A Devloper Blog....
Showing posts with label Read File Using Streams. Show all posts
Showing posts with label Read File Using Streams. Show all posts
Saturday, February 26, 2011
Read File Using Streams
Subscribe to:
Posts (Atom)
-
Make Your Own Notepad In this tutorial we will be making a simple C# Notepad with the option to Clear, Cut, Copy, Paste, Select All, Save...