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?
- [REBOL] Update file as port/Sec... icimjs
- [REBOL] The forthcoming REBOL/V... Al . Bri
- [REBOL] The forthcoming REBOL/V... Petr . Krenzelok
- [REBOL] The forthcoming REBOL/V... Al . Bri
- [REBOL] The forthcoming REBOL/V... Petr . Krenzelok
- [REBOL] The forthcoming REBOL/V... jimg
- [REBOL] The forthcoming REBOL/V... Petr . Krenzelok
- [REBOL] The forthcoming REBOL/V... jkinraid
- [REBOL] Re: The forthcoming REB... ejolson
- [REBOL] [REBOL] Update file as ... tjohnson
- [REBOL] [REBOL]Controlling secu... tjohnson
- [REBOL] [REBOL]Controlling secu... kracik
- [REBOL] [REBOL]Controlling secu... tim781
- [REBOL] [REBOL]Controlling secu... news . ted
- [REBOL] [REBOL]Controlling secu... tjohnson
- [REBOL] [REBOL]Controlling secu... joel . neely
- [REBOL] Re: Updating a file as a po... giesse
- [REBOL] [REBOL] Reading text a line at a time Re... ralph
- [REBOL] Reading text a line at a time Re:(2) tjohnson
- [REBOL] Reading text a line at a time Re... joel . neely
- [REBOL] Re: Rebol Web Server giesse
