I have some problem with access to files in /data folder.
If I use this path - "/opt/usr/apps/org.example.test/shared/res/input.txt", all will be OK, Ican read data from file. But if I use app_get_data_path() + "input.txt" - I won't have an error, so fopen will see this file, but I can't load data from it.
So, I have problem only in access, because all will be OK if I change the location. How can I fix this?
Also I have a question about security of files that are in /data folder, because I don't want user to have ability to open and thange them.