public static void saveLocalFile(String localPath, String contents) { System.IO.FileStream fsOut = System.IO.File.Create(localPath); System.IO.StreamWriter sw = new System.IO.StreamWriter(fsOut); sw.Write(contents); sw.Close(); fsOut.Close(); }