This is not a C, or any other language, question. It is a platform / environment question. In MS Windows, assuming you have an appropriate association set for the desired music file, be it .MID,...
You can't open a csv file as a jpg file. A csv is a text format for letters and words and a jpg is a graphic format used for photographs, so they are not compatible. They are used for completely...