Bitmap/Read a PPM file: Difference between revisions

→‎{{header|Fortran}}: comments not handled note
m (→‎{{header|Fortran}}: func alloc_img to sub (call))
(→‎{{header|Fortran}}: comments not handled note)
Line 240:
end subroutine read_ppm</lang>
 
'''Notes''':
'''Note''': doing formatted I/O with Fortran is a pain... And unformatted does not mean ''free''; Fortran2003 has ''streams'', but they are not implemented (yet) in GNU Fortran compiler. Here (as in the write part) I've tried to handle the PPM format through formatted I/O. The tests worked but I have not tried still everything.
 
'''Note''':* doing formatted I/O with Fortran is a pain... And unformatted does not mean ''free''; Fortran2003 has ''streams'', but they are not implemented (yet) in GNU Fortran compiler. Here (as in the write part) I've tried to handle the PPM format through formatted I/O. The tests worked but I have not tried still everything.
* comments after the first line are not handled
 
=={{header|OCaml}}==