Sets up file. Opens files, and gets the number of sets it'll be reading