Summary

 
Chapter 12 - File and Registry Operations
bySimon Robinsonet al.
Wrox Press 2002
  

In this chapter, we have examined how to use the .NET base classes to access the Registry and the file system from your C# code. We've seen that in both cases the base classes expose simple, but powerful, object models that make it very simple to perform almost any kind of action in these areas. In the case of the Registry, these are creating, modifying, or reading keys, and in the case of the file system, copying files, moving, creating, and deleting files and folders, and reading and writing both binary and text files.

In this chapter we have assumed that you are running your code from an account that has sufficient access rights to do whatever the code needs to do. Obviously, the question of security is an important one where file access is concerned , and we will examine that area in .NET Security.

  


Professional C#. 2nd Edition
Performance Consulting: A Practical Guide for HR and Learning Professionals
ISBN: 1576754359
EAN: 2147483647
Year: 2002
Pages: 244

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