Bitmap/Read a PPM file: Difference between revisions
→{{header|Wren}}: Fixed a potential timing issue with FileSystem.load.
m (→{{header|Wren}}: Changed to Wren S/H) |
(→{{header|Wren}}: Fixed a potential timing issue with FileSystem.load.) |
||
Line 3,546:
loadPPMFile(fileName) {
var ppm = FileSystem.load(fileName)
var count = ppm.count // ensure file is fully loaded before proceeding
if (ppm[0..1] != "P6") {
System.print("The loaded file is not a P6 file.")
|