loadfile "File" [,"Part"]

Categories: buffer, return
Loads the content of a file to the buffer and returns the buffer's content in form of a string (line breaks are displayed as ¦).
If the parameter Part is specified, the command only loads a certain passage of the file. In the files, parts are marked by the character string //~ which can only be inserted at the beginning of a line. Promptly after it (without spaces), a name can be given to the part. I.e. //~MyPassage
Now if you fill in MyPassage as a parameter, the command loads from the very line on that begins with //~MyPassage and stops as soon as the next //~ is reached or if the file ends.
This way, you can stuff as much script and text into a single file as you wish.
Stranded I, Stranded II & Stranded III are games by Unreal Software 2003-2019 | Contact | Disclaimer