FileInfo 读文件的问题!
string strfilename= @"C:\Documents and Settings\Administrator\桌面\xx.doc";
FileInfo fi=new FileInfo(strfilename);
if (!fi.Exists)
{
//一直返回不存在 不知道 为什么
}
如果strfilename=@"c\xx.doc"
就没问题
strfilename =@"C:\Documents and Settings\Administrator\My Documents\xx.doc"
也不行。
请指点!谢谢