Code Red > AutoLISP (Vanilla / Visual)
list from TXT file
Andrea:
Hi all,
I'm trying to write a list in a TXT file ...
so i have this code...
--- Code: ---
(setq CBfullist (append fich_list fich_list2 R1x))
(setq CBAfile (open Cfile "w"))
(foreach n CBfullist
(write-line n CBAfile)
)
(close CBAfile)
--- End code ---
But not working..
i'm trying to not use the While command.
any help ?
ronjonp:
Take a look at this thread:
http://www.theswamp.org/phpBB2/viewtopic.php?t=4966&start=0
Ron
Andrea:
ronjonp,
Thanks. but this can't help me..
I need to enter each item of a list ine a TXT file.
:?
Jeff_M:
What does your list look like?
("stuff" "more stuff") or (1 2 3 4) or ?
Andrea:
CBfullist = ("direct;7;777-777" "rm_sdb;7;XDF-ETG" "sh_spot;7;777-GFH" "chroma;7;XDF-ETR" "overhead;6;666-666")
and I need to put each of them in a txt file eg:
file 7.txt you will see:
direct;7;777-777
rm_sdb;7;XDF-ETG
sh_spot;7;777-GFH
chroma;7;XDF-ETR
overhead;6;666-666
Navigation
[0] Message Index
[#] Next page
Go to full version