Load the contents of a file to the current buffer

load_buffer  path (string)

Given a path to a file, will read the contents and load it into the current buffer. This will replace any previous content.

Introduced in v2.10

Example

# Example 1

load_buffer "~/sonic-pi-tracks/phat-beats.rb"



# will replace content of current buffer with contents of the file