.
Console.Error. : , Console. Out Console.Error, , ? , . , Console.Error , . , , , , . , -, , , . -.
FileStream -
.NET Framework - . , . . , , . . , . - . , -.
, , FileStream. Stream .
, , FileStream, System. 10. .
Using System.10;
, , FileStream. . :
FileStream(string , FileMode )
, ; . , FileMode . 14.4. , . FileMode.Append, .
14.4. FileMode
FileMode.Append FileMode.Create
FileMode.CreateNew
FileMode.Open FileMode.OpenOrCreate
FileMode.Truncate
|
|
.
.
, .
,
, . - , FileNotFoundException. - - -, IOException. , , : ArgumentNullException ( ), ArgumentException ( ), ArgumentOutOfRangeException ( ), SeaurityException ( ), PathTooLongException ( ), NotSupportedException ( , ), DirectoryNotFoundException ( ).
PathTooLongException, DirectoryNotFoundException FileNotFoundException IOException. , IOException.