I am currently developing a minecraft mod Manager in c#. I have access to folder with sub-folders corresponding to the different versions I have installed. Inside these folders are the mods in .jar files.
To this point, I have set up custom naming conventions on the files in order to display the mod name. I have discovered, however, that in each .jar file there is a file with the name mcmod.info containing the name and description of the mod. How can I access that file in the .jar? Best case scenario would be not to extract the .jar first and read the file's contents directly from the .jar. Here is an example of what a mcmod.info looks like:
If you use Total Commander, then select the JAR file in there with press Ctrl + PageDown. Then the Total Commander will open it for you and you can check, modify the the things in the JAR, if you want.