in C# .......................................................................................................................... 209 Handling Exceptions .............................................................................................................................. 210 Creating User-Defined Exceptions.......................................................................................................... 212 Throwing Objects................................................................................................................................... 213 28.
FILE I/O.............................................................................................................................. 214
C# I/O Classes ........................................................................................................................................ 214 The FileStream Class .............................................................................................................................. 215 Advanced File Operations in C# ............................................................................................................. 217 Reading from and Writing to Text Files .................................................................................................. 218 The StreamReader Class ........................................................................................................................ 218 The StreamWriter Class ......................................................................................................................... 220 vii