Xamarin.iOS - File System

This sample application demonstrates how to use the file system in iOS, discussed in the Xamarin.iOS documentation.

Working with the file system in iOS is not unlike working with the file system in .NET from Windows. You can still use the System.IO classes that you're used to working with but there are a few restrictions to be aware of. Additionally, it’s important to understand the directory structure specific to iOS applications in order to know where and when to store things.

iOS app that loads and saves to the file system

Prerequisites

  • Visual Studio on Mac or Windows.
    • Mobile Development with .NET (Xamarin) workload installed.
    • If you're using Windows, there should be a Mac available on the network.
    • Mac computer with the latest version of macOS.
  • Latest version of Xcode from Apple on the Mac.

Running the sample

  1. Open the solution file (.sln) in Visual Studio.
  2. Use the Run button or menu to start the app.