If you have full access to the file system and it is NTFS, you can probably use an alternate stream related to the file, but apart from the data.
For example you can write an Alternate Stream called flag with the TRUE value on command prompt by doing:
echo TRUE > C:\Path\file.xml:flag
Then, you can read the stream:
more < C:\Path\file.xml:flag
This will not change the file content.
There is no native .NET support for read/write NTFS alternate streams. But you can use WinApi p/invoke to access those streams: https://stackoverflow.com/a/604970/122195