File I/O in Legato Application

How to write data to file in /home/root folder programmatically in C? I’ve tried setting sandbox=false in .adef file but it’s not helping. Is there any particular way of doing it?

The sandboxing setting is sandboxed=false, not sandbox=false. Having said that, there are more secure solutions than disabling sandboxing if you care about security.