Stream |
| Exception | Condition |
|---|---|
| ArgumentException | path is an empty string (""). |
| ArgumentNullException | path is null. |
| FileNotFoundException | The file cannot be found. |
| DirectoryNotFoundException | The specified path is invalid, such as being on an unmapped drive. |
| IOException | path includes an incorrect or invalid syntax for file name, directory name, or volume label. |