Lecture overview -- Keyboard shortcut: 'u'  Previous page: The File and FileInfo classes -- Keyboard shortcut: 'p'  Next page: The Directory and DirectoryInfo classes -- 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 27 : 40
Object-oriented Programming in C#
Input and Output Classes
Members in class FileInfo

Instance methods and instance properties of class FileInfo

  • A single constructor

    • FileInfo(string)

  • Properties (getters) that access information about the current file

    • Examples: Length, Extension, Directory, Exists, LastAccessTime

  • Stream, reader, and writer factory methods:

    • Examples: Create, AppendText, CreateText, Open, OpenRead, OpenWrite, OpenText

  • Classical file manipulations

    • CopyTo, Delete, MoveTo, Replace

  • Others

    • Refresh, ...