Hello world/Line printer: Difference between revisions
Content added Content deleted
(Using Line Printer in Matlab and Octave) |
|||
Line 162: | Line 162: | ||
Run[commandstring]</lang> |
Run[commandstring]</lang> |
||
=={{header|Matlab}} / {{header|Octave}}== |
|||
===[[Unix]]=== |
|||
Assuming that the line printer is attached to /dev/lp0 |
|||
<lang Matlab> fid = fopen('/dev/lp0'); |
|||
fprintf(fid,'Hello World!\n'); |
|||
fclose(fid);</lang> |
|||
=={{header|OCaml}}== |
=={{header|OCaml}}== |