protected _WriteFile ( string name, string content ) : string | ||
name | string | |
content | string | |
return | string |
protected string _WriteFile(string name, string content)
{
var path = Path.GetFullPath(Path.Combine(_ContentPath, name));
Directory.CreateDirectory(Path.GetDirectoryName(path));
File.WriteAllText(path, content);
return path;
}