File status demo - rdstate() and checkStatus()