Skip to content

Instantly share code, notes, and snippets.

Newton Calegari newtoncalegari

View GitHub Profile
View gist:0d9164d555636630e1a5c0dfd2635f5d
// 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 {
You can’t perform that action at this time.