Lecture overview -- Keyboard shortcut: 'u'  Previous page: Directories and Files [Section] -- Keyboard shortcut: 'p'  Next page: Members in class FileInfo -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 26 : 40
Object-oriented Programming in C#
Input and Output Classes
The File and FileInfo classes

The class FileInfo represents a file

The class File holds static methods for creation, copying, deletion, moving, and opening of files

/user/normark/oop-csharp-1/sources/c-sharp/io/file-info-demo/file-info.csA demonstration of the FileInfo class. This program is explained


/user/normark/oop-csharp-1/sources/c-sharp/io/file-info-demo/output-fileinfoOutput from the FileInfo demo program.


/user/normark/oop-csharp-1/sources/c-sharp/io/file-demo/file.csA demonstration of the File class.


/user/normark/oop-csharp-1/sources/c-sharp/io/file-demo/output-fileOutput from the File demo program.


There is a substantial overlap between the instance methods of class FileInfo and the static methods in class File