主要使用的4个类代码,ReadFile,WriteFile,Net_Email,SysLogAdd
public class File
{
private const string connectionString = "Server=10.00.00.00;Database=CwtTripSep;UID=00;PWD=000;Enlist=true;Pooling=true;Max Pool Size=512;Min Pool Size=0;Connection Lifetime=300;packet size=2000";
public static string ReadFile(string FilePath, string Encode = "GB2312")
{
string StrTemp = "";
try
{
if (System.IO.File.Exists(FilePath))
StrTemp = System.IO.File.ReadAllText(FilePath, Encoding.GetEncoding(Encode));
}
catch (Exception)
{
StrTemp = "";
}
return StrTemp;
}
public static void SysLogAdd(int strLogType, string strLogUser, int st