Hopefully, I've given enough here so as to not have to dish out the entire code to help everybody understand the problem I'm having and maybe receive an answer as to what to do.
Given the code below with the parameters set, why will the commented portion work just fine, yet the foreach option executes, but doesn't actually set anything in the file? I've even tried opening as "w".
(setq cvsopen (open filepath "a"))
(foreach item filelist
(write-line item cvsopen)
)
;(write-line "P.CODE, ITEM, DESCRIPTION, F.CODE, FINISH" cvsopen)
(close csvopen)
filelist = the list below
filepath = "C:\\My Documents\\Draw\\DESIGN\\SpecBook.csv" <-I've even tried .txt here.
list
("P.CODE, ITEM, DESCRIPTION, F.CODE, FINISH" "B, DESIGN ELEMENT B:, SPEC 1:, ,
WAY TOO MANY THINGS TO LIST" ", , SPEC 2:, , FINISH" ", , SPEC 4:, , FINISH" ",
, SPEC 5:, , FINISH" "C, ITEM, SPEC 6:, , FINISH" ", , , , " "P.CODE, ITEM,
DESCRIPTION, F.CODE, FINISH" "B, DESIGN ELEMENT B:, SPEC 1:, , WAY TOO MANY
THINGS TO LIST" ", , SPEC 2:, , FINISH" ", , SPEC 3:, , FINISH" ", , SPEC 4:, ,
FINISH" ", , SPEC 5:, , FINISH" "C, ITEM, SPEC 6:, , FINISH")
[0]"P.CODE, ITEM, DESCRIPTION, F.CODE, FINISH"
[1]"B, DESIGN ELEMENT B:, SPEC 1:, , WAY TOO MANY THINGS TO LIST"
[2]", , SPEC 2:, , FINISH"
[3]", , SPEC 3:, , FINISH"
[4]", , SPEC 4:, , FINISH"
[5]", , SPEC 5:, , FINISH"
[6]"C, ITEM, SPEC 6:, , FINISH"
[7]", , , , "