public static string ReadAssemblyFileText(System.Reflection.Assembly assembly, string path, bool failSilently) { byte[] bytes = Util.ReadAssemblyFileBytes(assembly, path, failSilently); if (bytes == null) { return(null); } return(MysteryTextDecoder.DecodeArbitraryBytesAsAppropriatelyAsPossible(bytes)); }
public static string ReadFileText(string path) { path = NormalizePath(path); byte[] bytes = System.IO.File.ReadAllBytes(path); return(MysteryTextDecoder.DecodeArbitraryBytesAsAppropriatelyAsPossible(bytes)); }