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.
(-> booleansendan-editorinsert-filefilenameformatshow-errors?)
filename: path
format='guess: symbol in'(guess standard text text-force-cr same copy)
show-errors?=#t: booleanFor information on
format, seeload-file.The
show-errors?argument is no longer used.
(-> booleansendan-editorinsert-fileportformatshow-errors?)
port: input-port
format='guess: symbol in'(guess standard text text-force-cr same copy)
show-errors?=#t: booleanThe
portmust support position setting withfile-position.For information on
format, seeload-file.The
show-errors?argument is no longer used.