I have taken over a project built in C#, and I have very little experience in it, it is a program that(In a basic explination) takes an LUA file and then uploads it to a server. However, one aspect of this is checking if a new version of the file that the program is reading, Is available by reading a callback from the upload location.
Everything is working fine, but the Update check does not actually compare the Version listed in the LUA file, against the upload locations callback.
What i assume i need to do, is parse the LUA Datastructure, and pull the related version string. However, i do not know how to read that LUA file (Which the program already loads into a variable), and compare it against the Version from the Upload locations callback response.
What would be the best approach to do this if my Datastructure in the LUA file looks like:
CensusPlus_Database = {
["TimesPlus"] = {
["4372_Atiesh"] = {
["Horde"] = {
["2022-08-31&22:05:36"] = "91&79&71&74&37&71&57&78&139&361:220404343",
["2022-08-18&17:48:15"] = "53&68&63&40&30&42&43&38&77:2110306439",
["2022-08-18&06:53:38"] = "42&57&55&38&33&27&32&33&59:795639372",
},
["Alliance"] = {
["2022-08-28&01:10:10"] = "175&164&181&112&108&130&119&150&242:3697704985",
["2022-08-21&02:41:35"] = "342&342&430&274&235&284&323&271&547:2998108962",
["2022-08-31&05:49:43"] = "386&336&371&338&226&278&320&313&564&808:1114155607",
["2022-08-20&03:14:16"] = "213&258&469&297&256&290&300&291&559:4265312546",
["2022-08-27&03:20:19"] = "179&264&474&261&212&282&303&295&520:2167449855",
["2022-08-21&04:53:59"] = "417&380&451&296&256&289&330&329&541:954976706",
},
},
["4738_Maladath"] = {
["Horde"] = {
["2022-09-07&20:07:47"] = "258&302&252&161&170&240&198&164&501&89:3811666864",
["2022-09-07&05:49:55"] = "214&265&261&171&161&192&199&144&457&79:392981046",
["2022-08-31&09:22:27"] = "80&85&80&50&37&58&35&34&142&0:3016454238",
["2022-09-06&23:42:07"] = "312&371&327&257&215&276&282&246&629&84:2332640301",
["2022-09-05&08:40:11"] = "137&152&160&80&85&124&93&89&273&35:2563188284",
},
["Alliance"] = {
["2022-08-31&09:07:50"] = "122&85&110&66&56&63&72&55&208&0:1445732221",
},
},
},
["Guilds"] = {
},
["Info"] = {
["LogVer"] = "0.9.8",
["AutoCensus"] = true,
["PlayFinishSound"] = false,
["wowVersion"] = "3.4.0 (45435)",
["CPWindow_Transparency"] = 0.5,
["versionChecksum"] = 195027571,
["AutoCensusTimer"] = 1800,
["UseWorldFrameClicks"] = true,
["Verbose"] = false,
["ClientLocale"] = "enUS",
["SoundFile"] = 1,
["Version"] = "0.9.8",
["LoginServer"] = "US",
["Stealth"] = true,
["UseLogBars"] = true,
["CensusButtonAnimi"] = true,
["CensusButtonShown"] = true,
},
What i want to pull is What is stored in the ["LogVer"] dataset, in this case it is 0.9.8, but may change, so i'd only want to pull the content with in the quotes