file reading skeleton complete (scanner)