Hello world/Line printer: Difference between revisions

Using Line Printer in Matlab and Octave
(Using Line Printer in Matlab and Octave)
Line 162:
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}}==
Anonymous user