Execute a system command: Difference between revisions
Content added Content deleted
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
|||
Line 908: | Line 908: | ||
Scanner(proc.inputStream).use { |
Scanner(proc.inputStream).use { |
||
while (it.hasNextLine()) println(it.nextLine()) |
while (it.hasNextLine()) println(it.nextLine()) |
||
} |
} |
||
}</lang> |
}</lang> |
||