Hi Guys,
I want to write a class for the following scenario:
I have hundreds of files with different extensions(ex: pdf,txt,csv,xml etc)
I want to read the file and parse it based on its extension(type) & put it in a DB.
But a general If-Else / switch approach will be not the optimum solution.
Can any one help me if there is a
pattern for this sort of thing..
* I have tried putting the extension & action in a file as pairs and then accessing them
Thanks