I have a function that reads a bunch of path-values (8 or 9 of them) from a text file. It uses these paths later in the application to read files. Whats the best way to check for validity of these file-paths. Can I do a single catch of some sorts?
Share
You can use
File.Existsand/orDirectory.Existsis a path can be a directory.