Попробуйте следующее:
// Get the path to the resource file
var configurationFileURL = NSBundle.MainBundle.PathForResource("client", "conf");
// Make sure the file exists
if (configurationFileURL != null)
{
// load the text content of the file into a string variable declared elsewhere
configurationFileContent = File.ReadAllText(configurationFileURL);
}
И ответьте: «Насколько быстрее / короче Swift загружать содержимое файла, чем C #?»Вероятно, нет, но я не сделал тест производительности, чтобы проверить.