Re: [八六] 借我放

看板HSNU_986作者 (幹!空虛的日子)時間16年前 (2007/11/23 18:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/8 (看更多)
lsp (defun finddat (fn di / fp dat d char) (setq fp (open fn "r")) (if (null fp) (progn (princ "\nFile not found") ) ) (while (and (setq dat (read-line fp)) (setq char (substr dat 1 1)) (if (= char ";") t (progn (setq dat (read dat) d (car dat)) (/= d di) ) ) ) ) (close fp) (if (= d di) dat (progn (princ "\nData list for ")(princ di) (princ "not found in ")(princ fn) nil ) ) )lsp (defun finddat (fn di / fp dat d char) (setq fp (open fn "r")) (if (null fp) (progn (princ "\nFile not found") ) ) (while (and (setq dat (read-line fp)) (setq char (substr dat 1 1)) (if (= char ";") t (progn (setq dat (read dat) d (car dat)) (/= d di) ) ) ) ) (close fp) (if (= d di) dat (progn (princ "\nData list for ")(princ di) (princ "not found in ")(princ fn) nil ) ) ) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.46.19
文章代碼(AID): #17HgK2ul (HSNU_986)
文章代碼(AID): #17HgK2ul (HSNU_986)