#!/usr/bin/env mio

Cat = Object clone() do (

    run = method(
        (len(System args) == 2) ifTrue(
            file = File clone() open(System args[0])
        ) ifFalse(
            file = System stdin
        )
        System stdout write(file read())
        file close()
    )
)

Cat run()
