I have a CSV stored in a String:
Abc, Def, Ghi, Jkl, Mno[CR|LF]
Abc, Def, Ghi, Jkl, Mno[CR|LF]
Abc, Def, Ghi, Jkl, Mno[CR|LF]
Abc, Def, Ghi, Jkl, Mno[CR|LF]
When I open the file in Notepad++ and use "Show All Characters
" I see the newline character at the end of each line represented by the [CR|LF]
notation I indicated above.
How do convert this monolithic String into a List<String>
where each line above represents a separate String in the List
but without the [CR|LF]
characters?