store the csv read from stdin in 'X' instead of 'dat'