4. File Utility Flashcards
1
Q
How do you get the full path for the special .NET ApplicationData
folder?
A
By using the Environment.GetFolderPath
static method and passing it the Environment.SpecialFolder.ApplicationData
static attribute.
eg.
Environment.GetFolderPath(
Environment.SpecialFolder.ApplicationData);
````
~~~
2
Q
How do you get access to special .NET folders?
A
By dotting into the Environment.SpecialFolder
enum.
eg. Environment.SpecialFolder.Cookies;
3
Q
Where is a safe place to store user-specific data on a user’s computer?
A
The ApplicationData
folder.