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 together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Input and Output Classes - slide 26 : 40

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

file-info.cs
A demonstration of the FileInfo class.
output-fileinfo
Output from the FileInfo demo program.
file.cs
A demonstration of the File class.
output-file
Output from the File demo program.
There is a substantial overlap between the instance methods of class FileInfo and the static methods in class File