Use IO.read rather than cat