I am trying to read a text file, and read its contends. Easy enough, right? But the files contents read: Part1:Part2
Part1:Part2
I am trying to add the string(s) to a to an array list, with the following protocol: Add "Part1" to an arraylist called p1, then add "Part2" to an arraylist called p2. I need to go through the whole text file with multiple lines. How would I do so?
Comments
Post a Comment