For such a seemingly simple task, I am having much difficulty with it. Here is the code...
(defun C:TXTFILE (/ f LINE)
(progn
(setq f (open "TEST.TXT" "r"))
(setq LINE (read-line f))
(close f)
)
(princ))
I'm getting an error when I run that says "; error: bad argument type: FILE nil"
I know it can find the file because I had an if statement alerting me whether or not it found the file. For some reason it's having a hard time reading it.
- CMS IntelliCAD
- - FAQ - Frequently Asked Questions
- - General
- - AutoLisp/SDS
- - VBA, . NET & IRX
- - - FAQ
- - New User
- - Small Business
- - Realistic Rendering
- - Bonus
- - Free CAD .DWG Blocks
- - License Management
- - Store, Accounts and Purchases
- - Academic
- QuoteCAD Manufacturing
- - General
- - Quotation and Manufacturing
- - Database Manager
- - License Management
- ETOOLBOX CAD Viewer
- - General
- - License management