Hello:
        I am attempting to read and write test files 
via ftp.
I began by copying ftpappend.r from the examples site.
The code was modified as follows:
;;=======================================================
REBOL
[
  Title: "Append to a Text File"
  File:  %ftpappend.r
  Date:  26-May-1999
  Purpose: {Append to a text file using FTP.}
]
write/append
ftp://usr:[EMAIL PROTECTED]/webs/interfacefire/temps/log.txt join
"date: " now
;;=======================================================
;I believe that I can verify that I am contacting that site, because
; if I put in an invalid password or an nonexistant file name, I
; get an error message.
; Given that password and filename is correct: 
;  Rebol hangs; i.e the "progress prompt" 
;   |\- etc just keeps spinning and I have to abort the script

I have also written my own script, which goes as follows:
;;=======================================================
site: ftp://usr:[EMAIL PROTECTED]/webs/interfacefire/temps/test.txt
print read site
fp: open/lines/mode site [read write lines]
  forall fp
  [
    if(find first fp "three")
    [
      print first fp
      insert next fp "line four"
    ]
  ]
close fp
;;=======================================================
;;Same results as in ftpappend.r rebol hangs, no error
;;  messages, I have to abort the script
As always, I really appreciate the input, hope I can
be of some help some day.
regards
Tim

Reply via email to