You can copy the contents of an edit control to a string using the GetWindowText API call. This will retrieve all the text.

For manipulating portions of text in a multiline edit control, use the EM_SETSEL and EM_GETSEL, and EM_REPLACESEL messages.

http://msdn.microsoft.com/en-us/library/aa924582.aspx