As shown in the previous DirectoryApp example, the FileInfo class allows you to obtain details regarding existing files on your hard drive (e.g., time created, size, and file attributes) and aids in the creation, copying, moving, and destruction of files. In addition to the set of functionality inherited by FileSystemInfo, you can find some core members unique to the FileInfo class, which you can see described in Table 20-4.
|Member||Meaning in Life|
|AppendText()||Creates a StreamWriter object (described later) that appends text to a file.|
|CopyTo()||Copies an existing file to a new file.|
|Create()||Creates a new file and returns a FileStream object (described later) to interact with the ...|