一、创建文件,删除文件
//创建文件 string iniPath = @"D:\1\2.txt"; if (!System.IO.File.Exists(iniPath)) { using (StreamWriter sw = new StreamWriter(iniPath, false, Encoding.UTF8)) { sw.Write(iniPath); } } //删除文件 if (System.IO.File.Exists(iniPath)) { System.IO.File.Delete(iniPath); }
 
                    
                 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号