June 2011
Beginner
552 pages
12h 34m
English
The Foundation framework enables you to get access to the file system to perform basic operations on files and directories. This is provided by NSFileManager, whose methods include the capability to
• Create a new file
• Read from an existing file
• Write data to a file
• Rename a file
• Remove (delete) a file
• Test for the existence of a file
• Determine the size of a file as well as other attributes
• Make a copy of a file
• Test two files to see whether their contents are equal
Many of these operations can also be performed on directories. For example, you can create a directory, read its contents, or delete it. Another feature is the ability to link files. That is, the ability to have the same file exist under ...
Read now
Unlock full access