You can't write into the application engine directory, but you can write into the application document directory. Instead of using: specialFolderPath("engine") use: specialFolderPath("Documents")