added DoesExit() and Open() to file class