Hello all,
I have a file (ex File.txt) placed in My Documents folder.
I wrote below code:
the property Exists always return false. I think the problem is the spaces in filename. But dont know how to solve this.Code:FileInfo f = new FileInfo(@"C:\Documents and Settings\huyho\My Documents\File.txt");
if (f.Exists)
{
//............. do something
}
Anyone can help me?
Thanks
