write txt file in tizen native app via c

write txt file in tizen native app via c

BY 29 Apr 2015 Native Application Development

I create a Tizen Native app, and I want to print some log to a text file, that’s i can pull the log out from the device for analyzing. I’ve do the sample code like below, but seems can’t open the file, fopen return NULL.

#include "stdio.h"

FILE *fp = fopen("/opt/usr/apps/org.tizen.test/res/rawdata.txt", "w");

Did anyone can help me? I am in a wrong way?

Written by