convert function

Convert from one file format to another