© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
58 replies
Legion

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
 @[GM] Placeable Bridges;
 @[GM] Placeable Bridges;
because it contains ace in the name Placeable now how would i fix this:

Code:
https://pastebin.com/brMBLpab
Pastebin
String Comperison - Pastebin.com
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Strings
C#CC# / help
17mo ago
✅ Best way to use and compare enums? (Unity)
C#CC# / help
3y ago
✅ Does it matters which operator we use to compare strings, == or string.Equals?
C#CC# / help
12mo ago
better way to do this?
C#CC# / help
3y ago