Lecture overview -- Keyboard shortcut: 'u'  Previous page: Example: Filestreams -- Keyboard shortcut: 'p'  Next page: More FileStream Examples -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Input and Output Classes - slide 7 : 40

The using control structure
The using control structure is helpful when we do IO programming

using (type variable = initializer)
  body
using-equivalence
The control structure 'using' defined by 'try-finally'.
write-prog.cs
The simple write-program programmed with 'using'.
read-prog.cs
The simple read-program programmed with 'using'.