Skip to content

Instantly share code, notes, and snippets.

@tatuas
Created January 29, 2018 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatuas/fc2cfb9faad91128022bb2a4802592ef to your computer and use it in GitHub Desktop.
Save tatuas/fc2cfb9faad91128022bb2a4802592ef to your computer and use it in GitHub Desktop.
Rx
.map {
val response = ""
val path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)
.absolutePath + File.separator + "hello_constants.txt"
File(path).printWriter().use { out ->
out.write(response)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment