Nexus.Client.Util.FileUtil.WriteAllBytes C# (CSharp) 메소드

WriteAllBytes() 공개 정적인 메소드

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 WriteAllBytes ( string p_strPath, byte p_bteData ) : void
p_strPath string The path to which to write the given data.
p_bteData byte The data to write to the file.
리턴 void
		public static void WriteAllBytes(string p_strPath, byte[] p_bteData)
		{
			string strDirectory = Path.GetDirectoryName(p_strPath);
			if (!Directory.Exists(strDirectory))
				Directory.CreateDirectory(strDirectory);
			File.WriteAllBytes(p_strPath, p_bteData);
		}