vishal.chauhan
Registered
Hi All,
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
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.
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
Code:
= FSWriteFork(refnum,fsFromStart,NULL,(ByteCount)SizeToRead,pBuff, NULL);
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.