Uploaded December 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 mzmuda@techytube, for more from this author visit:
techytube.com/author/mzmuda
Previously, we explained how to save the currently selected state of a file picker in a XAML application.
As before, however, we need to load the saved state to have the changed reflected in the relaunch of our application.
Now, we will add logic to load the state at program launch, and demonstrate the full lifecycle of data within the application.
In this video, I will show you how to load state from a file picker.
XAML File Pickers -- msdn.microsoft.com/en-us/library/windows/apps/jj655411.aspx
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:
techytube.com/author/mzmuda
Previously, we explained how to save the currently selected state of a file picker in a XAML application.
As before, however, we need to load the saved state to have the changed reflected in the relaunch of our application.
Now, we will add logic to load the state at program launch, and demonstrate the full lifecycle of data within the application.
In this video, I will show you how to load state from a file picker.
XAML File Pickers -- msdn.microsoft.com/en-us/library/windows/apps/jj655411.aspx









![Reading and writing to files in Objective-C
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:
http://www.techytube.com/author/pavel
In Objective-C we can easily read and write text files by using the NSString class methods, and the way we do that is as follows:
NSString *fileContent = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
where url is the location of our actual file.
NSUTF8StringEncoding parameter is an Enum values specified by the system and it is widely used for .txt files.
To write strings/text to files we use the following syntax:
[newFileContent writeToURL:
url atomically:YES encoding:NSUTF8StringEncoding error:nil];
where newFileContent is an object of NSString class, atomically:YES means that the system will first create a temporary file, and if everything executes successfully, it will rename that to the file in our url. Reading and writing to files in Objective-C](https://i.ytimg.com/vi/XUHDYwdwX08/mqdefault.jpg)
