I need to take apart the text in a richtextbox line by line to put into a file because i need to return line by line.

doing this:

write #1, richtextbox.text

will make a single "entry" to the file... how can i take apart the textbox line by line?