PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Loading/Writing of files under Symbian

Hi,

I am using gapidraw for a symbian game, but how can I write/read files under Symbian? It seems like that fopen/fread does not work.. :?

Greets.. Marco
The Symbian way to do it is using the file server for file manipulations. See for example the API reference
I am not used to symbian programming, I just want to make some tests on the n-gage by using gd and I don't have any experience with fileservers etc..
Are there any examples for just reading a file ?

Thanks and regards..

Marco
You can also use the standard C way of doing things if you are familiar with these (fread, fwrite etc). Look at this link for a list of implemented functions in the C/POSIX standard library. Remember to link against estlib.lib and to call CloseSTDLIB() when you don't need the stdlib anymore. Not calling this will result in a memory leak.

//Erik