insert-file in editor<%>
Inserts the content of a file or port into the editor (at the current
selection position in text% editors). The result is
#t; if an error occurs, an exception is raised.
The content of an editor can be changed
by the
system in response to other method calls, and such changes do not go through this method; use on-insert in text% or
on-insert in pasteboard% to
monitor content additions changes.
( -> boolean
send an-editor insert-file filename format show-errors?)
filename : string
format = : symbol in 'guess'(guess standard text text-force-cr same copy)
show-errors? = : boolean#t
For information on format, see
load-file.
The show-errors? argument is no longer used.
( -> boolean
send an-editor insert-file port format show-errors?)
port : input-port
format = : symbol in 'guess'(guess standard text text-force-cr same copy)
show-errors? = : boolean#t
The port must support position setting with file-position.
For information on format, see
load-file.
The show-errors? argument is no longer used.