Compare Strings better way.
Ok so i am in need of a program that will generate a string that i can copy and paste that string on Dedicated Server for a game called Arma 3.
Now i have a file with all of the Mods currently installed on the server witch is a simple txt file.
Also i have a HTML file that is a current modpack for the mission we want to play.
Now i would want to get the HTML and TXT file and compare there strings.
Example: HTML has a mod, I check if that mod is on server if it is get the name of the mod from the server and add it to ouput string and carry on to the next mod.
But I have encounterd a problem where if one of the mods would contain part of the name it would give that mod.
Example: I have mod in html called @ace.
Now i would like to grab that name from the server file in this case it would be same @ace. but it grabs
Code:
https://pastebin.com/brMBLpab
Now i have a file with all of the Mods currently installed on the server witch is a simple txt file.
Also i have a HTML file that is a current modpack for the mission we want to play.
Now i would want to get the HTML and TXT file and compare there strings.
Example: HTML has a mod, I check if that mod is on server if it is get the name of the mod from the server and add it to ouput string and carry on to the next mod.
But I have encounterd a problem where if one of the mods would contain part of the name it would give that mod.
Example: I have mod in html called @ace.
Now i would like to grab that name from the server file in this case it would be same @ace. but it grabs
@[GM] Placeable Bridges; because it contains ace in the name Placeable now how would i fix this:Code:
https://pastebin.com/brMBLpab
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.