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);
````
~~~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you get access to special .NET folders?

A

By dotting into the Environment.SpecialFolder enum.

eg. Environment.SpecialFolder.Cookies;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where is a safe place to store user-specific data on a user’s computer?

A

The ApplicationData folder.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly