C#C
C#3y ago
!

C# array problem // Error loading configuration : Index was outside the bounds of the array

Hii! I'm new to this group i tried to fix it yesterday all day and decided to ask for help.
I moved some settings files to a webserver and after updating code, i trigger the error in title. The problem is that it works perfect with index==0, but if i use any other index, it will give the error in title.

As an exemple, if i select the second element in list(index==1) it will trigger that error, even if Server1.txt and Server2.txt have the same content.
All the txt files have elements separated by space
I'm open to any advice, thanks❤️
Was this page helpful?