You can set up a loop like this:
int fieldCount = 249;
InputFieldCSV[] inFields = new InputFieldCSV[fieldCount];
int i = 0;
while (i < fieldCount) {
norm.addInputField(inFields[i] = new InputFieldCSV(true, rawFile, i));
i++;
}
Then set up further loops for the rest of the code where you see the same line repeated over. (code not tested...)