How do I identify a line break in a txt using javascript?
Example:
Essa é a linha 1
Essa é a linha 2
Essa é a linha 3
The file has these 3 lines and I want to put them in an array separated by the line break, array [0] is line 1, array [1] line 2, etc ... Remembering that I pull this data from a .txt via ajax ...
NOTE: The result of a .txt file is pulled, it does not have / n to skip lines, but a line break made by pressing the ENTER key. O.o