Binary |
public BinaryReader( string fileName, Encoding encoding )
| Exception | Condition |
|---|---|
| InvalidDirectoryLocationException | Invalid directory location passed. |
| IOException | File System error while attempting to open the stream. |
| DirectoryNotFoundException | Invalid directory location. |
| FileNotFoundException | The file passed does not exist. |
| PathTooLongException | Path is greater than 248 characters. |
| ArgumentException | Invalid argument passed. |
| ArgumentNullException | One of the arguments is null. |
| SecurityException | The user does not have the required permissions. |
| ArgumentOutOfRangeException | Mode or FileAccess are invalid. |
| NotSupportedException | The file is of a non-file system type. |