Write list to file

Discussion in 'AutoCAD' started by Dale Levesque, Apr 8, 2005.

  1. I would like to write a var which evaluates to ((0 3 5) (1 2)) out to file
    as a string in the format of "((0 3 5) (1 2))". Is there an easy function to
    do this or do i have to step through the list and build the string?

    Best regards,

    Dale
     
    Dale Levesque, Apr 8, 2005
    #1
  2. Dale Levesque

    Tom Smith Guest

    Just open a file for write and print to it

    (print <list> <filedescr>)
     
    Tom Smith, Apr 8, 2005
    #2
  3. Thanks Tom.
     
    Dale Levesque, Apr 8, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.