none
File permissions in OSX RRS feed

  • Question

  • I am following the book “C# Programming in easy steps to learn how to program in C# on my iMac. I now realise that the text of the book was tested on a Windows machine as some things don’'t work on my mac.
    I have reached the section on “Writing a file” and have included the line “using System.io” after the “using System” line. When I run the program which includes the line “if (File.Exists(path);”, where path was previously declared as “/users/jim/projects” I get the error message "access to the path '/users/jim/projects is denied' " . When I use 'Command + i" to show the folder information it says that I have read and write permission! So why am I being denied?

    I should be most grateful if someone would tell me what I need to change on my iMac in order to read and write to files.
    Friday, October 11, 2019 3:30 PM

All replies