check to see if a specified file exist in a specified directory
-
Hi to all, I want to check the specified file exist in the specified directory or not.... how can i do this?
Pravin
-
Hi to all, I want to check the specified file exist in the specified directory or not.... how can i do this?
Pravin
create the instance of FileInfo class //FileInfo f; initialze that in the following manner //f = new FileInfo("something.txt");///mention the complete path and then use this property to know whether this file exists or not ///if(f.Exists == false) /// means the file doesn't exist ok
-
create the instance of FileInfo class //FileInfo f; initialze that in the following manner //f = new FileInfo("something.txt");///mention the complete path and then use this property to know whether this file exists or not ///if(f.Exists == false) /// means the file doesn't exist ok
Thanks Kuldeep
Pravin
-
Hi to all, I want to check the specified file exist in the specified directory or not.... how can i do this?
Pravin
Hi In order to check if a specific file exists You can use the File.Exists static method , you can also use the FileInfo.Exists property but for that you need to construct a FileInfo Object
-
Hi In order to check if a specific file exists You can use the File.Exists static method , you can also use the FileInfo.Exists property but for that you need to construct a FileInfo Object
Thanks Nissims, i have used here object.FileExists(filespec) method.
Pravin
-
Hi to all, I want to check the specified file exist in the specified directory or not.... how can i do this?
Pravin