Iodirectoryinfo and systemiofileinfo provide instance

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ction Classes I/O and Networking Threading and Synchronization Transactions Exceptions 21 I/O and Networking Directories and Files Streams, Stream Readers and Stream Writers Networking Support I/O and Networking Directories and Files Provides a fully object-oriented way to explore the file system System.IO.Directory and System.IO.File provide static methods to manipulate directories and files, respectively System.IO.DirectoryInfo and System.IO.FileInfo provide instance methods to manipulate directories and files, respectively 22 I/O and Networking Directories and Files System.IO.DirectoryInfo represents a directory GetDirectories([mask]) gets subdirectories GetFiles([mask]) gets contained files System.IO.FileInfo represents a file Can construct directly by providing a path Or returned from GetFiles() enumeration All OpenX() methods return System.IO.Stream Open(), OpenRead(), OpenWrite(), OpenText() I/O and Networking Streams Abstract base stream: System.IO.Stream Read(), Write() for basic synchronous access Full asy...
View Full Document

This note was uploaded on 04/04/2014 for the course CS 5950 taught by Professor Staff during the Summer '08 term at Western Michigan.

Ask a homework question - tutors are online