处理文件 / 基本操作

using System;
using System.IO;

var path = @"C:\tmp\file.txt";
var exists = File.Exists(path);
Console.WriteLine(exists);