COMP2129 Study Guide - Final Guide: Ado.Net, Temporary File, Ole Db
Document Summary
Like the members of the file class, all members in the directory class are public static methods. The directory class provides static methods for creating and moving through directories and subdirectories. The fileinfo and directoryinfo classes add functionality beyond method members of the file and directory classes. They both have a number of public properties and, of course, both offer a public constructor. If you plan to make reference to and use a file or directory several times, you will want to consider instantiating objects of one or both of these classes and use its instance methods. C# uses file streams to deal with stored data. Streams represent a chunk of data and provide a way to work with a sequence of bytes. The streamwriter and streamreader classes make it easy to read or write data to and from text files in c#. the streamwriter class has implementations for write( ) and. Writeline( ) methods similar to the console class methods.