View or download rosettaify.frink in plain text format
/** This is a simple program that makes it easier to upload programs and their
output to Rosetta Code:
https://rosettacode.org/
It takes one argument (the Frink program name) and runs the program and
prints its output and formats it all in Rosetta-Code-friendly tags.
It assumes that there is a program named "frink" in your path that runs
Frink programs.
*/
use Processes.frink
file = ARGS@0
text = read[filenameToURL[file]]
out = execRead["frink $file"]
println["""=={{header|Frink}}==
<lang frink>$text</lang>
{{out}}
<pre>$out</pre>"""]
View or download rosettaify.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 18864 days, 10 hours, 1 minutes ago.