Summary


In this chapter, you have examined how to use the .NET base classes to access the file system and registry from your C# code. You’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 file system, these are copying files; moving, creating, and deleting files and folders; and reading and writing both binary and text files; and in the case of the registry, these are creating, modifying, or reading keys.

This chapter 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, and it is discussed in Chapter 19, “.NET Security.”




Professional C# 2005 with .NET 3.0
Professional C# 2005 with .NET 3.0
ISBN: 470124725
EAN: N/A
Year: 2007
Pages: 427

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