public string ReadAssemblyFileText(string path, bool failSilently) { byte[] bytes = ReadAssemblyFileBytes(path, failSilently); if (bytes == null) { return(null); } return(UniversalTextDecoder.Decode(bytes)); }
public string GetText(string path) { byte[] byteData; if (!this.data.TryGetValue(path, out byteData)) { throw new System.InvalidOperationException(path + " was not available in the template set. Files: " + string.Join(", ", this.data.Keys)); } return(UniversalTextDecoder.Decode(byteData)); }
public static string ReadFileText(string path) { path = NormalizePath(path); byte[] bytes = System.IO.File.ReadAllBytes(path); return(UniversalTextDecoder.Decode(bytes)); }
public string ReadFileText(string path) { return(UniversalTextDecoder.Decode(ReadFileBytes(path))); }
public string ReadFileString(string path) { byte[] bytes = this.ReadFileBytes(path); return(UniversalTextDecoder.Decode(bytes)); }