kotlin-stdlib / kotlin.io.path / java.nio.file.Path / inputStream inputStream JVM JRE7 1.5 fun Path.inputStream(vararg options: OpenOption): InputStream(source) Constructs a new InputStream of this file and returns it as a result. The options parameter determines how the file is opened. If no options are present then it is equivalent to opening the file with the READ option.