Preventing crash on close stream

BlitzMax Forums/BlitzMax Programming/Preventing crash on close stream

Isn't there a command to check if the stream is still alive? (don't know, perhaps even a =null check on the stream itself?)

If not, using BNetEx and readavail (like in old blitz) might be a solution so you see when the stream breaks.

Another not tested idea as this is an io thing: enclose it within try - catch. IO stuff etc throws errors.