/** This is a simple program that makes it easier to upload programs and their
output to Rosetta Code:
https://rosettacode.org/
It takes at least one argument (the Frink program name) and runs the
program and prints its output and formats it all in Rosetta-Code-friendly
tags. If more than the Frink program name are given as arguments, the
remaining arguments are passed to the Frink program.
It assumes that there is a program named "frink" in your path that runs
Frink programs.
*/
use Processes.frink
file = ARGS@0
text = trim[read[filenameToURL[file]]]
println["""=={{header|Frink}}==
"""] out = execLines["frink $file " + join[" ", rest[ARGS]]] for line = out println[line] println[""""""]