class ValidityTools {

	public static void checkAccessibilityOfFiles ( String... args ) {
		for ( String name : args ) {
			File f = new File( name );
			if ( f.canRead( ) && f.canWrite( ) && f.isFile( ) ) continue;
			else {
				logger.error( "The required file : " + f.getAbsolutePath( ) + " is not accessible." );
				System.exit( 1 );
			}
		}
	}

}