Cant print to file, possibly opened the file wrong