| The Following User Says Thank You to jaeezzy For This Useful Post: | ||
|
|
2009-10-19
, 02:14
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#2
|
Hi,
I'm trying to read/write from a file in the scratchbox (maemo5sdk) but just being unsuccessful. So, I'm wondering is there a different way to do such in maemo for now I'm trying with FILE *fptr = fopen("filename", "mode"); Its just returning me an error which I've set up if the fptr is NULL. This is for a home widget which will read the file to initialize its value with the file's contents and save the values to the same file when new settings are applied. Any help/suggestion would be greatly appreciated. Thank you.
|
|
2009-10-19
, 02:54
|
|
Posts: 25 |
Thanked: 12 times |
Joined on Mar 2008
@ Warsaw, Poland
|
#3
|
RETURN VALUE
Upon successful completion fopen(), fdopen() and freopen() return a FILE pointer. Oth‐
erwise, NULL is returned and errno is set to indicate the error.
| The Following User Says Thank You to arachnist For This Useful Post: | ||
|
|
2009-10-19
, 03:17
|
|
|
Posts: 664 |
Thanked: 160 times |
Joined on Jul 2008
@ Australia
|
#4
|
|
|
2009-10-19
, 05:07
|
|
|
Posts: 664 |
Thanked: 160 times |
Joined on Jul 2008
@ Australia
|
#5
|
I'm trying to read/write from a file in the scratchbox (maemo5sdk) but just being unsuccessful. So, I'm wondering is there a different way to do such in maemo for now I'm trying with FILE *fptr = fopen("filename", "mode"); Its just returning me an error which I've set up if the fptr is NULL. This is for a home widget which will read the file to initialize its value with the file's contents and save the values to the same file when new settings are applied. Any help/suggestion would be greatly appreciated. Thank you.