Computer scienceMobileAndroidPersistence

Internal, external, scoped storage

Mode constant

Report a typo

Which constant is missing that specifies the mode in which the file is created within the internal storage?

fun writeToFile(context: Context, filename: String, data: String) {
    context.openFileOutput(filename, _______________).use {
        it.write(data.toByteArray())
    }
}
Enter a short text

Create a free account to access the full topic