Read rules from file