Returns the text stored in a .txt file packaged in a VLX
(vl-get-resource text-file)
A string containing the text in text-file.
Assume the getres.vlx file contains a LISP program defining a function named print-readme, and a text file named readme.txt. The print-readme function is defined as follows:
(defun print-readme ()
(princ (vl-get-resource "readme"))
(princ)
)
After loading getres.vlx, invoke print-readme:
_$ (print-readme)
Product Readme text
Product Readme text 2