Add a generic file handler