C#: File Operations

Here is some easy to use C# library functions: Read Text File into String: private string ReadFileIntoString(string inputfile) { string theString = ""; StreamReader reader = new StreamReader(inputfile); try { theString = reader.ReadToEnd(); } finally { reader.Close(); }   return theString; } Write Text String into File: public static void WriteTextFile(string sLogFileName, string sMessageLine) { […]