The following code inserts a line of text into
a file after a specific cue and rewrites it:
;=========================================================
fp: open/lines/allow/mode  %test.txt [read write] [lines]
  forall fp
  [
    if(find first fp "three")
    [
      print first fp
      insert next fp "line four"
    ]
  ]
update fp
close fp
;This works fine, but I have to respond to the 
; Rebol - Security Check prompt. 
;If I run rebol from the command line as thus: 
; rebol -s FileIO.r to disable the security check
; is disabled

; I would like to be able to disable the security check from
; the code itself:
; After review example files, it appears that the following as
;  the first line should do it:
#!rebol -s
; I used the cgi examples (cgi*.r) as reference
; regardless of this usage, the Rebol - Security Check
; prompt still appears
What else should I be doing?

Reply via email to