Exercises


  1. What is the namespace that must be imported to allow an application to work with files?

  2. When would you use a FileStream object to write to a file instead of using a StreamWriter object?

  3. What methods of the StreamReader class allow you to read data from files and what does each one do?

  4. What class would you use to compress a stream using the Deflate algorithm?

  5. How would you prevent a class you have created from being serialized?

  6. What events does the FileSystemWatcher class expose and what are they for?

  7. Modify the FileWatch application you built in this chapter. Add the ability to turn the file system monitoring on and off without exiting the application.




Beginning Visual C# 2005
Beginning Visual C#supAND#174;/sup 2005
ISBN: B000N7ETVG
EAN: N/A
Year: 2005
Pages: 278

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