I have a program which takes a file as an input and does some processing depending upon the type of file passed.
The file types are : abc_txt, abc_ply, abc_cnvinf, abc_laneinfo etc
eg: DoWork [FileType] [File]
./DoWork txt abc_txt (or) ./DoWork cnvinf abc_cnvinf
Now I have to perform a check, like if the type and file do not match it should give an error.
That is it should check if the type and _XXX are same.
How do I proceed doing it?? I have no idea.. can anyone help??