How could I get the file format from the file so that depending on the Files Format it goes to the correct code using the sample code below
Or is there another way to