I have the following code :
String[] enteteSplit = new String[48];
enteteSplit = entete.Split(';');
enteteSplit[35] = enteteSplit[35].Replace(',', '.');
Where entete is a string. The 3rd line is throwing an IndexOutOfRangeException and i couldn't resolve this, any ideas ?
Thanks a lot.
enteteSplit.enteteSplithas less than 36 items in it. Your first line doesn't matter sinceSplit()just returns a new array.