No, there is no way to write a version of a file this way, and I don’t know, to be honest.
Possible option:
Write the version of the file to the file itself in some formatted data.
The most common approach that I see is writing to the beginning of the file or to the first line of the file. Thus, you can quickly access this information and solve any process with reading or not.
source
share