Hi All,

I m using Qt 4.1.5 on my MAC.

I am reading raw data from disk and writing them to buffer and then trying to write that Buffer in file through FSWriteFork which is in FileSystem API of the Apple.
I m using the following line

error
Qt Code:
  1. = FSWriteFork(refnum,fsFromStart,NULL,(ByteCount)SizeToRead,pBuff, NULL);
To copy to clipboard, switch view to plain text mode 

But if I use fsFromStart it always write the buffer at the starting that is suppose I want to write 4 Gb data from the disk to file and I read a 20 MB buffer and write it in a loop to the buffer the final size of the file will only be 20 MB instead of 4 GB.

there are other value as well
fsAtMark
fsFromStart
fsFromLEOF
fsFromMark

But I donot know which value should I use to write whole size and then be able to open the file.


If anybody knows then plz help me.

Thanks.