Better to get it directly from the game code rather than a text file which may be in different places on different users' machines. The folder that the mod is located in is an easy-enough to get to location in the file system. For some users, it's the main mod folder. For others, it's a folder beneath that. Others, a folder beneath that, etc. Sure, it can be coded to work its way up until it finds the root EA Sims 4 game folder and then read the text file, but that's a much messier way of trying to do it than just asking the game system (which knows the version because it CREATES the GameVersion.txt file).
That not being an option, I may look at the alternatives, but I don't find the alternatives that attractive for the reason I mentioned above and also for the fact, like I had told EG, when you're trying to find the game version, it's better to get it from a source that can't be user-modified (or even deleted).