4
How to 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 q pull this data from a . txt via ajax...
NOTE: It is pulled the result of a file . txt, it does not have /n to skip the lines but a line break made by pressing the ENTER key. O.o
No need to have n, this metacharacter represents a line quedra.
– Yure Pereira