The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: s = slurp_file ( f )

slurp_file return a whole text file f as a string s.

f : string : filename s : string : contents of the file

If f is not an absolute filename, and is not an immediately accessible file, slurp_file () will look for f in the path.

Package: miscellaneous