hao3ren 发表于 2015-5-25 16:10 
cx-write好像木有
...这个......自己写
关于Cx-catch 在论坛中有 ... - ;写入文件;str="123"或者'("11" "22");txt_str="c:\\cx-config.txt";fg=t nil;
- (defun cx-write (str txt_str fg / i TMPTXT)
- (if (= 'str (type str))
- (setq str (list str))
- )
- (SETQ TMPTXT
- (cx-catch 'open (list txt_str (if fg "a" "w"))
- '(progn
- (prompt "检测到错误.请检查账户权限.\n")
- (prompt "控制面板->用户帐户->更高用户帐户控制设置.进行调节..\n")
- (exit)
- )
- )
- )
- (setq i 0)
- (while (< i (length str))
- (write-line (nth i str) tmptxt)
- (setq i (1+ i))
- )
- (CLOSE TMPTXT)
- )
|