Hi Nisha, I think here is not problem of writing into file. This problem is because of file permission. check the permission of the respective file , does it has writing permission for the user as well? , if not give the write permission. as I know on maemo if your application creates a file it will not give the write permission to that same file ... I also faced bit same problem on Maemo and solved by changing the permission might be this will solve your problem.
regards Sphurti ----- Original Message ---- From: nisha jain <[EMAIL PROTECTED]> To: gtk-app-devel-list@gnome.org Sent: Sunday, 6 July, 2008 9:46:22 AM Subject: Wrting to a text file in N800 /media/mmc1 Hi All, Does any Hildon or gtk API supports writing into text files my following code written in C is not working for N800 which works perfectly fine under MAEMO ARMEL mode.........Please if some one has some information let me know... Regards, Nisha ---------- Forwarded message ---------- From: nisha jain <[EMAIL PROTECTED]> Date: Jul 5, 2008 4:09 PM Subject: Re: Wrting to a text file in N800 /media/mmc1 To: [EMAIL PROTECTED] Cc: gary liquid <[EMAIL PROTECTED]> Hi All, I just checked in N800 the following program for writing into a file which doesn't work.... Any clues what is going wrong? I neither get any error not it is creating a file and writing into it......... #include<stdio.h> void main() { FILE *Gfile; if ((Gfile = fopen("/media/mmc1/test.txt", "w+")) == NULL) { printf("Error in file creation"); } if(Gfile) fprintf(Gfile,"%02x",0x10); fclose(Gfile); } Regards, Nisha _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Get an email ID as [EMAIL PROTECTED] or [EMAIL PROTECTED] Click here http://in.promos.yahoo.com/address _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list