Added checks if file exists before opening in various functions
Added checks if file exists before opening in various functions

eidheim/jucipp,cppit/jucipp,cppit/jucipp,zalox/jucipp,eidheim/jucipp,eidheim/jucipp,cppit/jucipp,zalox/jucipp,zalox/jucipp