Thread: Access Denied
View Single Post
Old May 28th, 2006, 3:01 PM   #1
NightShade01
Programmer
 
Join Date: Oct 2005
Posts: 52
Rep Power: 4 NightShade01 is on a distinguished road
Access Denied

I'm trying to write a simple program that will just open a streamwriter and write a few lines of text to a txt file. However i want the txt file to be under the path c:\program files\file.txt. No matter what i try though the program constantly keeps crashing saying that access is denied to that path. How do i get around this?
NightShade01 is offline   Reply With Quote