read-line 2000i to 2004

Discussion in 'AutoCAD' started by jbryant4, Feb 9, 2004.

  1. jbryant4

    jbryant4 Guest

    Has something in the "read-line" function changed from 2000i to 2004? I am converting programs over to 2004, and it appears as if the read-line function is returning different values in 2004. For example, in 2000i, this line of code:
    (setq f (open (findfile "flange.txt") "r"))
    (setq ltest (read-line f))...............returns:................" 0.5 3.75 0.5625 2.0625 1.5 4 0.625 2.625 1.375
    0.5625 0.0625 0.5 0.875 0.875 0.125 2 2 2
    2 0.88 1.5 1.75 0.55 0.75 0.5"..............while the same code in 2004 returns:.................."ANSI150\t9\t18\t27\t36\t45\t54\t63\t72\t81\t90\t99\t108\t117\t126\t135\t144\t153\t162\t171\t180\t189\t198\t207\t216\t225\t234\t243\tANSI150"..........The text file that it is reading has not been changed. Any ideas? Thanks in advance
     
    jbryant4, Feb 9, 2004
    #1
  2. jbryant4

    jbryant4 Guest

    Never mind...2004 was finding another copy of "flange.txt" on my hard drive.
     
    jbryant4, Feb 9, 2004
    #2
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.