November 30, 2006

Performing FileToString and StringToFile.

The required methods are on the File class:
using System.IO;

string File.ReadAllText  (string path, Encoding enc);
string File.ReadAllText  (string path);
void   File.WriteAllText (string path, string contents, Encoding encoding);
void   File.WriteAllText (string path, string contents);

No comments: