Example #1
0
 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));
 }
Example #2
0
 public static string ReadFileText(string path)
 {
     path = NormalizePath(path);
     byte[] bytes = System.IO.File.ReadAllBytes(path);
     return(MysteryTextDecoder.DecodeArbitraryBytesAsAppropriatelyAsPossible(bytes));
 }