[maemo-developers] fopen and placement of file in SDK
From: Tripti Gupta itstripti at yahoo.comDate: Sun Mar 2 21:29:40 EET 2008
- Previous message: Hardware performance counters
- Next message: devloping/using bitmap fonts on osso_xterm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello All... I have my app with some code like this: FILE *config; char portal_IP[MAXCH]; int portal_port; char inpstr[MAXCH]; config = fopen("/tmp/pconfig.in","r"); if(config != NULL){ /*fscanf(config,"%s",inpstr); fscanf(config,"%s",portal_IP); fscanf(config,"%s",inpstr); fscanf(config,"%s",inpstr); portal_port = atoi(inpstr); strcat(buffer,portal_IP); strcat(buffer,inpstr); fclose(config); */ strcpy(buffer,"opened pconfig.in"); } else strcpy(buffer,"Can't open pconfig.in"); The problem is this works on my device N800 when I put this file pconfig in /tmp forlder but this doesnt work on my SDK scratchbox, it just doesn even open the Application. Can someone please help me guessing where cud be the problem,.. Thanks.. Tripti ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
- Previous message: Hardware performance counters
- Next message: devloping/using bitmap fonts on osso_xterm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]