File要在文件头上加什么命名空间(马上结帐)
private void button1_Click(object sender, System.EventArgs e)
{
string strFile="c:\test\bb\bin\back.txt";
if(File.Exits(strFile))
MessageBox.Show("找到");
else
MessageBox.Show("没找到");
}
D:\温勇杰\my project\c#\WindowsApplication1\Form1.cs(92): 找不到类型或命名空间名称“File”(是否缺少 using 指令或程序集引用?)