use

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

Closes the receiver after block. Compatibility function.