Here is the code to read a text file from disk one line at a time into a string.  This code ensures the file exists and properly closes the file if an exception occurs. using System; using System.IO; namespace CSharp411 { class Program { static

Share and Enjoy:
  • Digg
  • Google
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Print this article!
  • Slashdot
  • Yahoo! Buzz