I have done that check now but the NSFileHandler documentation doesn't show how to create the file if its not there, only how to create a file desciptor.
I have done that check now but the NSFileHandler documentation doesn't show how to create the file if its not there, only how to create a file desciptor.
i am writing data into one file(a.xml) in iphone default directory to put xml file.As the same file i have read them , to be change the data with directly for iphone default directory in that file(a.xml).
do you know any idea for file handling .reply this concept .
__________________
thanks and regards,
pradeep joshua
I think you need to use NSFileManager to check for the existence of the file, and create it if needed.
joe
i am writing data into one file(a.xml) in iphone default directory to put xml file.As the same file i have read them , to be change the data with directly for iphone default directory in that file(a.xml).
do you know any idea for file handling .reply this concept .
__________________
thanks and regards,
pradeep joshua
i am writing data into one file(a.xml) in iphone default directory to put xml file.As the same file i have read them , to be change the data with directly for iphone default directory in that file(a.xml).
do you know any idea for file handling .reply this concept .
What so you mean "iphone default directory". If it's the main bundle of the application, you can't write there. You can write to the documents directory.
how to create application settings and how to retrieve,write and edit data from the s
Quote:
Originally Posted by FlyingDiver
What so you mean "iphone default directory". If it's the main bundle of the application, you can't write there. You can write to the documents directory.
joe
hi FlyingDriver
I had already done with in this concept using array function.
but "how to edit the file(a.xml) in the phone simulater from the document directory" and "how to read the data from the iphone simulator in the document directory".
I have store the application configuration file(.xml) in the iphone then i have edit,read and write the file from the iphone document directory and automatically change the settings.
Where to go and find the document directory in iphone simulator.
do u have understand.if you have any idea send reply me for example or documentation
__________________
thanks and regards,
pradeep joshua