Skip to content

Instantly share code, notes, and snippets.

@tatuas
Created January 29, 2018 07:33
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/5c7cc342771604163990cb48207458a4 to your computer and use it in GitHub Desktop.
Save tatuas/5c7cc342771604163990cb48207458a4 to your computer and use it in GitHub Desktop.
RxでString
.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