I am trying to create big files (up to several megabytes) on my Symbian device and am experiencing some problems.
Dealing with files on the memory card (flash) is a piece of cake because the file system (Fat) is able to recognize file sizes set using the method RFile::SetSize. This is no problem. I am able to set my file to any desired size.
When it comes to the internal memory disk however, it is a bit trickier. It seems like this file system (Lffs) does not recognize file sizes set using the method above. This means I am bound to manually fill the file with data to achieve a file of a desired size. This is where the problem arises. Filling a file with e.g. 128 kB takes minutes on my device. I am using a simple for-loop that writes one "x" (on byte) to the file every loop.
Is there a faster way to write huge amounts of data to files or some other way to aquire big files on the file system Lffs?
Oh, and I am using temporary files but that should not matter.