manipulating sentences please help
in
Programming Questions
•
1 year ago
i have text file and i want save the word and any punctuation associated with it and in the same file i want to remove words that are common and then keep the same formatting for the text by saving it in text file.
- WordAnalysis analysis;
- }
- void setup()
- {
- analysis = new WordAnalysis();
- String[] lines = loadStrings("input.txt");
- String allText = join(lines, " ");
- String[] wordList = split(allText, " ");
- for (int i = 1; i < wordList.length; i++)
- {
- println(wordList[i]);
- }
1