Hello All:
test file is test.txt
contents are:
line one
line two
line three
line five
;The following code seeks to identify the third line and
;inset a line after it:
fp: open/lines/write %test.txt
forall fp
[
if(find first fp "three") ; identify third line
[
print first fp ; tell user it's been found
insert fp "line four" ; insert?
]
]
update fp ; "post"
close fp
;;Two questions:
;; 1)the inserted line ist not being inserted. Why and How?
;; 2)What code can I insert so that rebol will not prompt
;; for permission.
Thanks
Tim
- [REBOL] Rebol Web Server woodward
- [REBOL] Rebol Web Server Re: Al . Bri
- [REBOL] Does REBOL support multiple instances of... steveb
- [REBOL] [REBOL] Reading text a line at a time tjohnson
- [REBOL] [REBOL] Reading text a line at a tim... allenk
- [REBOL] [REBOL] Reading text a line at a tim... Al . Bri
- [REBOL] [REBOL] Reading text a line at a tim... icimjs
- [REBOL] [REBOL] Updating a file as a por... tjohnson
- [REBOL] [REBOL] Updating a file as ... icimjs
- [REBOL] [REBOL] Updating a file... jimg
- [REBOL] [REBOL] Updating a ... icimjs
- [REBOL] [REBOL] Updating a ... icimjs
- [REBOL] [REBOL]Update file as p... tjohnson
- [REBOL] [REBOL]Update file ... icimjs
- [REBOL] [REBOL]Update file ... tjohnson
- [REBOL] Update file as port... icimjs
- [REBOL] Update file as port... jimg
- [REBOL] Update file as port... Petr . Krenzelok
