I have a list like this but much longer in a text document.
123451234
1234123
1234567
12345678
I need it to be reformatted to
"1123451234", "1234123","1234567","123123123","112345678"
I have tried the robot class with java in a loop. I can add the " " and the , but the problem is each line is a different length so I can't simply have it click the left arrow a certain amount of times. What could I do? If you need more info please ask and thanks in advance!
Here's the code for the person that asked.
Robot r = new Robot();
r.keyPress(KeyEvent.VK_QUOTE);
r.keyRelease(KeyEvent.VK_QUOTE);
r.keyPress(KeyEvent.VK_RIGHT);
r.keyRelease(KeyEvent.VK_RIGHT);
r.keyPress(KeyEvent.VK_RIGHT);
r.keyRelease(KeyEvent.VK_RIGHT);
r.keyPress(KeyEvent.VK_RIGHT);
r.keyRelease(KeyEvent.VK_RIGHT);
r.keyPress(KeyEvent.VK_RIGHT);
r.keyRelease(KeyEvent.VK_RIGHT);
r.keyPress(KeyEvent.VK_COMMA);
r.keyRelease(KeyEvent.VK_COMMA);
r.keyPress(KeyEvent.VK_QUOTE);
r.keyRelease(KeyEvent.VK_QUOTE);