Split list by new line

Split list by new line

Hello,

How would I be bale to put text into a list and splitting it by a new line? This is what I currently have but it is not working: 
scan = input.OCR;
scanList = scan.toList("/n");