Single.zip(readFileSingle("thefile.txt")),
readFileSingle(“theotherfile.txt")),
BiFunction { t1, t2 ->
"$t1 \n$t2"
}).observeOn(AndroidSchedulers.mainThread())
.subscribe({
textView.text = it
}, { e ->
if (e is IOException) {
handleIOException(e)
}
Log.e(TAG,e.message,e)
})