Read command line arguments in LOLCODE

384 Views Asked by At

I have two files like: program.lol text.txt

Then, I would like to run the LOLCODE code passing the name of the text file as argument with some syntax like:

./interpreter program.lol text.txt

I would like to print the contents of the text file, but I do not know how to pass and read the arguments.

Any ideas?

1

There are 1 best solutions below

0
On

There is no support for command line arguments in the spec for v1.2.. Not even in the proposed future spec for v1.3. As such, it's not possible. Best you could do is pass in the name of the file as input, and then using GIMMEH to get the name of the file.