{ public static void Write(String Filename, String Content) { try { StatusBarManager.ShowText("Writing " + Filename + " ... "); StreamWriter SW = new StreamWriter(Filename); SW.Write(Content); SW.Close(); StatusBarManager.AddText("Done"); } catch { StatusBarManager.AddText("Failed"); } }
{ public static String Read(String Filename) { try { StatusBarManager.ShowText("Reading " + Filename + " ... "); StreamReader SR = new StreamReader(Filename); String Content = SR.ReadToEnd(); SR.Close(); StatusBarManager.AddText("Done"); return(Content); } catch { StatusBarManager.AddText("Failed"); return(null); } }