use scan not readLines