public static void TryDelete(List <string> fnlist) { foreach (string fn in fnlist) { FileEx.DeleteWithoutException(fn, null); } }
public static void ShowStringWithNotePad(string txt) { var tempTxtFileName = PathEx.TempTxtFileName; FileEx.SaveToFile(tempTxtFileName, txt); Process.Start(tempTxtFileName); }
public static bool IsFileLengthMoreKB(string fn, int maxkb) { return(FileEx.GetFileLength(fn) > (long)(maxkb * 1024)); }
public static string TryReadFile(string fn) { return(FileEx.TryReadFile(fn, Util.EncodingGb2312)); }