Is there a possibility to get a timeout for blocking file read? Would be nice when reading from a fifo (mkfifo ... ) f = File("", "r"); r.readLine(timeOut: 2); regards Till