I\'ve got a file from a vendor that has 115 fixed-width fields per line. How can I parse that file into the 115 fields so I can use them in my code?
My first thought
If your string is called inStr, convert it to a char array and use the String(char[], start, length) constructor
inStr
String(char[], start, length)
char[] intStrChar = inStr.toCharArray(); String charfirst10 = new String(intStrChar,0,9); String char10to20 = new String(intStrChar,10,19);