Hello Everyone i recently moved to Ubuntu to work on a project.
I have to simply read from a file, using:
File root = new File(fileroot);
File sourceFile = new File(root,filename);
error: error reading FilePath; FilePath (Permession denied).
One way to do this is to navigate to the file and change the permission to allow every user to read the file. The easiest is via terminal:
chmod +r /path/to/file
To see all the different uses follow the link and learn about chmod. https://codex.wordpress.org/Changing_File_Permissions