I just wanted to know if there's any possible way to read a file's specific data like say if I wanted to get only the float value from a file like "Version.txt" which contains the following data:-
Code: Select all
Version: 4.2
So as you can see, there is a string "Version: " and a float value "4.2" so I just want to extract the float value so is it possible to do so? I want this function so that I can set version for my programs and when I update it, it checks for older version and if it finds it, it will first uninstall the previous version and install the new one. So, for this feature, I need to read a specific data from a file. I know how to do this in QBasic but I can't seem to do it in Batch.
Does anyone know how to do this?