只需一步,快速开始
;;给你一个子程序,以表的形式返回文件的全部内容
;;例如d盘存在 abc.txt 则调用 (ffile "abc.txt")
(defun ffile(f / f_dat txt_row) (setq ccdate '() f_dat (open (strcat "d:/" f) "r")) (while (setq txt_row (read-line f_dat)) (setq ccdate (cons txt_row ccdate)) ) (close f_dat) (reverse ccdate))
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-5-17 13:06 , Processed in 0.198216 second(s), 18 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.