Hi,
I am creating a file with:
NSFileManager *fileManager = [NSFileManager defaultManager];
[fileManager createFileAtPath:path contents:nil attributes:nil];
===
then I got a fileHandle as:
NSFileHandle *fileHandle = [NSFileHandle
fileHandleForWritingAtPath:path];
===
Sorry to duck your question, but are you sure you don't want
NSKeyedArchiver and similar classes?
/Thomas
On Apr 15, 2008, at 4:38 PM, Nick Rogers wrote:
Hi,
I am creating a file with:
NSFileManager *fileManager = [NSFileManager defaultManager];
[fileManager createFileAtPath:path
Hi,
I will use NSKeyedArchiver to create a lot of NSData objects before
writing to file.
I can't write one whole NSData to file because i have to write in GBs
and also have to show the progress bar.
Thanks for the reply,
Nick
On 15-Apr-08, at 8:10 PM, Thomas Backman wrote:
Sorry to duck
On 15 Apr 2008, at 15:49, Nick Rogers wrote:
I will use NSKeyedArchiver to create a lot of NSData objects before
writing to file.
I can't write one whole NSData to file because i have to write in
GBs and also have to show the progress bar.
So just use NSKeyedArchiver to generate a header
ok,
so if i generate a header NSData object and write that to file, and
then then write the larger NSData object,
how will i read one NSData after the another.
How will i know what length should I read.
excuse me if this sounds very newbie to you.
Wishes,
Nick
On 15-Apr-08, at 8:30 PM,
On Apr 15, 2008, at 10:38 AM, Nick Rogers wrote:
Hi,
I am creating a file with:
NSFileManager *fileManager = [NSFileManager defaultManager];
[fileManager createFileAtPath:path contents:nil attributes:nil];
===
then I got a fileHandle as:
NSFileHandle *fileHandle = [NSFileHandle
On 15 Apr 2008, at 16:06, Navneet Kumar wrote:
ok,
so if i generate a header NSData object and write that to file, and
then then write the larger NSData object,
how will i read one NSData after the another.
How will i know what length should I read.
excuse me if this sounds very newbie to
On Apr 15, 2008, at 10:38 AM, Nick Rogers wrote:
but i want to write the length of (NSData *)data, before I write it
to file because I will be writing a lot of NSData to the file,
so that I will be able to read the length first and then read the
following NSData.
SO how can I write the