闲来无事,又8月了
public void SaveLensDisRet(string fileContent)
{
var filePath = Directory.GetCurrentDirectory() + "\\data\\LensDisRet\\";
if (!Directory.Exists(filePath))
{
Directory.CreateDirectory(filePath);
}
using (StreamWriter sw = new StreamWriter(filePath + ChuckName + DateTime.Now.ToString("yyyyMMddHHmmss") + ".txt"))
{
sw.Write(fileContent);
sw.Flush();
sw.Close();
}
}