Open a TXT file included in resource

Discussion in 'AutoCAD' started by Gustavo Guidi, May 19, 2004.

  1. I have a problem with a TXT file included as a resource file
    I try to open it with (setq file (open "1.TXT" "r")), and instead of opening
    it, seems to search in the directory and doesn't open it
    Is it there any special way to open it when included as a Resource file?
    I have worked with DCL files and had no problems

    Thanks
     
    Gustavo Guidi, May 19, 2004
    #1
  2. Gustavo Guidi

    zeha Guest

    try (open (findfile "1.TXT") "r")) or
    (if (setq filenm (findfile "1.TXT"))(setq file (open filenm "r"))(princ "not found"))
     
    zeha, May 19, 2004
    #2
  3. Findfile search in the directories and not inside the VLX



    "not found"))
     
    Gustavo Guidi, May 20, 2004
    #3
  4. Gracias, buscare en esa funcion
     
    Gustavo Guidi, May 21, 2004
    #4
  5. Thankyou

    Gracias Luis

     
    Gustavo Guidi, May 25, 2004
    #5
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.