string folderName = c:\Activity Logging; string fileName = Log File.txt; string path = Path.Combine(folderName, fileName); if (!Directory.Exists(folderName)) { Directory.CreateDirectory(folderName); //Working fileCheck = true; } if (!File.Exists(path)) { File.Create(path, 1024, FileOptions.RandomAccess, new FileSecurity(path, System.Security.AccessControl.AccessControlSections.All));// Error Here?? fileCheck = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)