Reputation: 31
Is there anyway to say... Include a version number when creating a text file?
Basically, my process is writing a text file that I need to check if there's a newer version available. My plan was to use FileVersionInfo to determine the current version and the version on the PC. However, I can't figure out how to write the file to the PC with a version attached to the file.
Any ideas?
Upvotes: 3
Views: 2002
Reputation: 1062905
Typical options here include;
But no; plain text files don't have much associated metadata by themselves
Upvotes: 4
Reputation: 67223
Plain text files have no embedded resources (except for file attributes such as the file date).
Either write the version as part of the text that can easily be parsed, use the file date to track versions, or use binary files and embed your own resources.
Upvotes: 1