i have this function which is supposed to read from a file and save it into appropriate places. Im having a problem where it opens the file and even reads for other vairable