code to read all Rules files in a folder