successfully reads file into heap