Anonymous user
User talk:Idrougge: Difference between revisions
no edit summary
m (→include a file: added comments about failed attempts to run the REXX program.) |
No edit summary |
||
Line 99:
I also tried to run it with having the environmental variable '''REGINA_OPTIONS''' to have the '''AREXX_BIFS''' option included. Still no joy. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 04:30, 13 September 2015 (UTC)
: Try this:
<lang rexx>
/* Include a file and INTERPRET it; this code uses ARexx file IO BIFs */
OPTIONS AREXX_BIFS
OPTIONS AREXX_SEMANTICS
say 'This is a program running.'
if Open(other,'other.rexx','READ') then do
say "Now we opened a file with another chunk of code. Let's read it into a variabl"
othercode=''
do until EOF(other)
othercode=othercode|| ReadLn(other) || ';'
end
call Close(other)
say 'Now we run it as part of our program.'
interpret othercode
end
say 'The usual program resumes here.'
exit 0
</lang>
--[[User:Idrougge|Idrougge]] ([[User talk:Idrougge|talk]]) 12:38, 13 September 2015 (UTC)
|