public LoadIncludeText ( string requestFileName, string &content, string &location ) : bool | ||
requestFileName | string | |
content | string | |
location | string | |
return | bool |
public bool LoadIncludeText(string requestFileName, out string content, out string location)
{
content = string.Empty;
location = string.Empty;
var resolved = ResolveFilePathPrivate(requestFileName);
if (File.Exists(resolved))
{
location = Path.GetFullPath(resolved);
content = File.ReadAllText(resolved);
return true;
}
// TODO: Find file (use dte)
return false;
}