0
Difference between split and split('\n') ?
while reading line in file I want to know what does split and split('\n') do
1 Respuesta
+ 11
.split does exactly what the name says, splits the string by its argument as separator. If you specify '\n' as argument, it will split the whole text (presumably from a loaded file) into end-of-line-separated list of strings.