Bitmap/PPM conversion through a pipe: Difference between revisions
Content added Content deleted
(Added Kotlin) |
|||
Line 178:
=={{header|Mathematica}}==
The Windows command line does not like quotes in the middle of text, so strings have been turned into character codes.
<lang Mathematica>convert[
"Export[FromCharacterCode["~~ToString[ToCharacterCode[out]]~~"],ImportString[StringRiffle[Table[InputString[],{4}],FromCharacterCode[10]],FromCharacterCode[{80,80,77}]]]"
▲ StartProcess[{"WolframKernel", "-noinit", "-noprompt", "-run",
}]},
WriteLine[process,image];
WriteLine[process,"Quit[]"];
];</lang>
== {{Header|OCaml}} ==
|