use

inline fun <C : Closeable, R> C.use(block: (C) -> R): R