read the file into a vector