An instructional sample app for Windows 8.1 Preview that implements common file-handling features. This is the companion sample for the
File handling, start to finish article.
This sample, and the accompanying
File handling, start to finish documentation, illustrates how to add file handling capabilities to a JavaScript / HTML Windows Store app, from start to finish. The sample includes instructions and code to perform the following file-handling
tasks:
- File and Folder Pickers – Pickers display a list of files or folders from which a user can select one or more items for further processing. This sample includes code and guidance for presenting file and
folder pickers to a user where a single file can be selected, multiple files can be selected, and a single folder can be selected.
- File Access Basics – Illustrates several key file-access features such as programmatically enumerating the files of a given folder, retrieving a file's properties (including top-level, basic, and extended
properties), creating a file, and writing data to and reading data from a file.
- Smart Files – Microsoft OneDrive files can be marked as either available-offline (default) or online-only. This capability enables users to move large files (such as pictures and videos) to their OneDrive,
mark them as online-only, and save disk space (as a file containing only metadata about the remote file is kept locally). This sample illustrates how to use the new
StorageFile.IsAvailable property to determine if a file is currently available.
This sample includes all the things that are discussed in the
File handling, start to finish topic.
SEE ALSO
File handling, start to finish