Create & save permanent log file

Hello everyone,

The application I am developing aim at monitoring and recording radio and data session information, especially disconnection reasons. It stores these information into a text file thanks to the use of fopen function. ( fopen(“fx30sessionstates.txt”,“a”); )

But when the app is reinstalled or relaunched, the file is deleted by the system as a temporary file. So even if the file is opened in “append” mode, the file is still deleted.

Could someone tell me where the file should be saved permanently ?

Thank you

Hi there,
Would /home/root work for you?
BR,
Chris

Hello cchenry,

Thank you for your reply.
Opening/creating the file into /home/root fails maybe due to permissions.
It also maybe due to missing bundles into cdef or adef files. Are they mandatory for what I am trying to do ?

Thank you