Hello. By running the procedure through the command line, pointing it to the input file like this
I can read the contents of test.txt into test.p with a simple
However, if i don't pass a file to test.p, then without an explicitly open input, the error will be ** Attempt to read with no current source of input. (513). How to determine that a procedure was passed a file as input.
_progres -b -p test.p < test.txt
def var cline as c no-undo. _tt: do while true on endkey undo _tt,leave _tt: import unformatted cline. end.