There is a user-entered string that should look like the full path to the file, picking up its program works with the specified in the file, as if to make the input validation occur before (! FileExist), because if the file must be created on the specified line, the program will crash with an unhandled exception. developments:
string pattern = @"([a-zA-Z]://)((/w+//)+|(/w+./w+))" But I have suspicions that this construction will work incorrectly. Know, please tell me