예제 #1
0
 public static void TryDelete(List <string> fnlist)
 {
     foreach (string fn in fnlist)
     {
         FileEx.DeleteWithoutException(fn, null);
     }
 }
예제 #2
0
        public static void ShowStringWithNotePad(string txt)
        {
            var tempTxtFileName = PathEx.TempTxtFileName;

            FileEx.SaveToFile(tempTxtFileName, txt);
            Process.Start(tempTxtFileName);
        }
예제 #3
0
 public static bool IsFileLengthMoreKB(string fn, int maxkb)
 {
     return(FileEx.GetFileLength(fn) > (long)(maxkb * 1024));
 }
예제 #4
0
 public static string TryReadFile(string fn)
 {
     return(FileEx.TryReadFile(fn, Util.EncodingGb2312));
 }