The program I am trying to write takes a file type and converts it to another file. The program will know what files it will accept for example only .foo,