1. There is not any relationship between your two classes that I can see, although a
Directory
object may contain
File
objects.
2. You open a file by one of the file or stream methods. If by a doc file you mean a MSWord document then you will need to refer to the
Interop assemblies[
^] on MSDN.
Also I don't see the relevance of your references to "the console" in your second question.