Add defun for opening batf.txt