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.
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.






![Windows 8 Development - Application Data
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 mzmuda@techytube, for more from this author visit:
http://www.techytube.com/author/mzmuda
Now that we have correctly configured our SuspensionManager helper class, we can start populating data into the Application Data container.
We first need to create a variable, and then feed the appropriate container (in this case roaming data) into that variable.
After that, we can start putting key and value pair information into that container, using standard notation:
Container[Key] = Value;
In this video, I will show you how to access and write to the RoamingData object.
References
XAML Application Lifecycle http://msdn.microsoft.com/en-us/library/windows/apps/hh986968.aspx Windows 8 Development - Application Data](https://i.ytimg.com/vi/_nPxPTcBrXo/mqdefault.jpg)



