Introduction to File Management in Objective-C @techytube
Introduction to File Management in Objective-C  @techytube
Uploaded September 2012 | Updated September 2026, 2 weeks ago
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
techytube.com/author/pavel

File Management refers to to terms of working with files, manipulating them, changing their names, locations etc. When creating iOS or MAC OS apps, we can use the C-style functions for working with files.

As Objective-C is an object oriented programming language, we'll use its way, and that will be the NSFileManager class, which has a bunch of utility methods.
[NSFileManager defaultManager] will return us a NSFileManager object that we can further use.

To check if a file exists at a specific path, we use the syntax:
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])

To change the file's location, we use:
[fileManager moveItemAtPath:currentPath toPath:newPath error:nil];
We can provide a NSError object as the last parameter to this function, and then use that to check if the operation involving files got successfully executed.
Introduction to File Management in Objective-CWorking with UIAlertView class in iOSWindows 7 vs Windows 8 Setup Speed ComparisonRestoring database backups Differential and Transaction Log Backups, Part 4Windows 8 - Surviving the upgrade. the keyboard shortcuts to knowWorking with UIAlertViewDelegate protocol methods in iOS.NET 3.5/WPF Creating A Splash ScreenWindows 8 Development - Application DataYum (Yellow Dog Updater Modified) Part 4 of 4Working with UIPickerView class in iOSWindows 8 Development - Javascript App Bar IIVMWare PowerCli
techytube |

Introduction to File Management in Objective-C

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER