This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// criar as funcoes para ler e escrever | |
fun escreverArquivo(context: Context) { | |
val filename = "nome_plantinha.txt" | |
val fileContent = "Plantinha do Pedro" | |
context.openFileOutput(filename, Context.MODE_PRIVATE).use { | |
it.write(fileContent.toByteArray()) | |
} | |
} | |
fun lerArquivo(context: Context): String { |