gdl 0.8.10 openu /append fails

Help
2005-09-16
2013-06-03
  • Jim Garlick

    Jim Garlick - 2005-09-16

    The following procedure demonstrates what looks
    like a problem with openu /append.  The error I get is

    % OPENU: Error opening file. Unit: 100, File: /tmp/appendbug.txt

    Jim

    pro appendbug

    filename="/tmp/appendbug.txt"

    openw, lun, filename, /get_lun
    printf, lun, "Junk"
    free_lun, lun

    ; this fails in GDL but succedes in IDL
    openu, lun, filename, /get_lun, /append
    printf, lun, "More junk"
    free_lun, lun

    ; This succedes in both
    openu, lun, filename, /get_lun
    info = fstat(lun)
    point_lun, lun, info.size
    printf, lun, "More junk"
    free_lun, lun

    end

     
    • Marc Schellens

      Marc Schellens - 2005-09-18

      This is fixed now in the CVS.

       
    • Jim Garlick

      Jim Garlick - 2005-09-22

      Yes it works for me now, thanks.
      Jim

       

Log in to post a comment.