Answers for Hour 19

   

1:

True or False: The Open File dialog box automatically opens a file.

A1:

False. The control returns the name of the file the user wants to open, but it doesn't open the file.

2:

What symbol is used to separate a filter description from its extension?

A2:

The pipe ( ) symbol

3:

What objects are used to manipulate files?

A3:

System.IO.File and System.IO.FileInfo

4:

What arguments are required by System.IO.File.Copy()?

A4:

Two arguments are required. The first is the name of the current file; the second is the name of the file to create as a result of the copy.

5:

How would you rename a file?

A5:

Use System.IO.File.Move(), using the same path but a different filename.

6:

True or False: Files deleted with System.IO.File.Delete() are sent to the Recycle Bin.

A6:

False

7:

What objects are used to manipulate folders?

A7:

System.IO.Directory and System.IO.DirectoryInfo. Sometimes Microsoft calls them folders, sometimes directories. In .NET, however, it's usually directory.


   
Top


Sams Teach Yourself C# in 24 Hours
Sams Teach Yourself Visual Basic 2010 in 24 Hours Complete Starter Kit (Sams Teach Yourself -- Hours)
ISBN: 0672331136
EAN: 2147483647
Year: 2002
Pages: 253
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net