C
C#12mo ago
Austin9675

File writing

Anyone know a way around or how to fix this? none of my previous practice apps have come up with this error
No description
2 Replies
Buddy
Buddy12mo ago
Start VS as admin As accessing C drive requires admin access
Austin9675
Austin9675OP12mo ago
i fixed it, instead of a + in needed a , so string vehicleFile = Path.Combine(Environment.GetEnvironmentVariable("USERPROFILE"), "VehicleChecklist.txt");

Did you find this page helpful?