I created a text file named Write.txt in the Documents folder in a Xamarin.iOS app. After that I was able to read its content to the console.
var documents =
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
var filename = Path.Combine(documents, "Write.txt");
File.WriteAllText(filename, "Write this text into a file");
var text = File.ReadAllText(filename);
Console.WriteLine(text); // prints out correctly
The problem is, that I can't found this file on the iPhone simulator's Files app. There is no Documents folder anywhere, and I don't get any results if I search for the filename.
(Yes, I'm new in iOS, so sorry if the question is stupid :) )