views:

165

answers:

1

hello

I am trying to implement an iphone application which can read some fixed amount of bytes from a file and store in another file. this process will going on up to end of file. I am very new to iphone application so please help me on that . Is there any parent classes are there for this specific type of implementations.

+1  A: 

If you just want to copy the file, use NSFileManager's copy functions.

If you just want specific bytes in a file, you can load the file using NSData's file methods then you can get specific blocks of bytes and write them to file.

If you want more fine grain control, use NSFileHandler.

Edit01:

This page has examples for close to what you want. I don't have anything on hand.

TechZen
Hi Thanks for your quick response . and can please give me some sample code appilication for reading chunk by chunk and writing to the another file.Thanks ,KamalBhr.
KamalBhr
*"plz send me teh codez"*
Stu Thompson