Bitmap/Read an image through a pipe: 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 750:
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.")
9,476

edits