Nexus.Client.Util.FileUtil.WriteAllText C# (CSharp) Method

WriteAllText() public static method

Writes the given data to the specified file.
If the specified file exists, it will be overwritten. If the specified file does not exist, it is created. If the directory containing the specified file does not exist, it is created.
public static WriteAllText ( string p_strPath, string p_strData ) : void
p_strPath string The path to which to write the given text.
p_strData string The text to write to the file.
return void
		public static void WriteAllText(string p_strPath, string p_strData)
		{
			string strDirectory = Path.GetDirectoryName(p_strPath);
			if (!Directory.Exists(strDirectory))
				Directory.CreateDirectory(strDirectory);
			File.WriteAllText(p_strPath, p_strData);
		}