Hi there,
I have like 440 edittexts of numbers in my layout and I want to save them into the text file (. txt) and then this file send via email. Can anyone help me with the code to make this happen? I’m rookie with kotlin,and I’m guessing that the best ways are arrays or for loops. Many thanks to all
It sounds like this is an Android question, yes?
If you want to expand your search, any Java solutions you find should work in Kotlin as well.
If you need help with loops, I recommend the reference page.
For saving files, you can use any Java tutorials you find online–however, Kotlin adds some helpful functions that makes things a lot easier.
For a taste of how to write to a file, here’s this:
File("foobar").writeText("Hello File")