Split file and open files.