.NET Write a file with version information about the file.

Can I still say ... Include the version number when creating the text file?

Basically, my process writes the text file I need to check if a newer version is available. My plan was to use FileVersionInfo to determine the current version and the version on the PC. However, I cannot figure out how to write a file to a PC with the version attached to the file.

Any ideas?

+3
source share
2 answers

Typical options include:

  • hashing content and comparing this
  • relying on audit dates
  • saving the version in a file and
  • saving the version in the first line of the file
  • using file observer events (untrustworthy by itself, for most accounts)
  • NTFS

;

+3

( , ).

, , , .

+1

All Articles