Skip to content

Instantly share code, notes, and snippets.

Newton Calegari newtoncalegari

Block or report user

Report or block newtoncalegari

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.