示例#1
0
        public static string ReadAllText(string filePath, double retryTime = 480)
        {
            var utf8 = new UTF8Encoding(false);

            return(utf8.GetString(FileReader.ReadAllBytes(filePath, retryTime)));
        }
示例#2
0
 public virtual byte[] ReadAllBytes(double retryDurationInS = RETRY_DURATION)
 {
     return(FileReader.ReadAllBytes(this._fileInfo.FullName, retryDurationInS));
 }