C
C#5mo 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
Buddy5mo ago
Start VS as admin As accessing C drive requires admin access
Austin9675
Austin96755mo ago
i fixed it, instead of a + in needed a , so string vehicleFile = Path.Combine(Environment.GetEnvironmentVariable("USERPROFILE"), "VehicleChecklist.txt");