views:

430

answers:

1

i write some image files in to iphone document folder. then i have to retrieve that files name in an array. please post some code.

A: 

Look at the documentation for NSArray. You'll find methods for reading data from files into arrays in there.

Jasarien
i have to read file names from the document folder
You can get the path for the Documents directory by using NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); - you then need to append the filename of the file you are trying to read to the end of the path.
Jasarien