只需一步,快速开始
使用道具 举报
用循环去读应该可以的,
(setq file-dec (open "文件" r))
(setq text-content (read-line file-dec))
(while (/= text-content nil)
)
如果你想得到全部内容, 最好建立一个存储内容的表!
(defun redfile (filename / str fileobj outlist)
(setq fileobj (open filename "r")
outlist nil )
(while (setq str (realine fileobj ))
(setq outlist (append outlist (list str)))
(close fileobj )
outlist
)
将文件中的内容读入表中。
谢二三楼的代码。
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-6-21 04:09 , Processed in 0.141060 second(s), 24 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.