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 

_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to