read stdin if not file is given
more doc