Are you using an array of strings or just one string with a new-line between lines?
PHP Code:
#define AddText(%1,%2,%3) (format(%1,%2,"%s^n%s",%3,%1))
//Usage:
AddText( szDestString , charsmax( szDestString ) , "Add_to_Top" );
Example output when called 10 times with a number incrementing + 1 each pass:
Code:
10
9
8
7
6
5
4
3
2
1
__________________