ivanisavich
02-28-2012, 07:33 PM
I know I can add a new line to a string by adding "\n" to the string.
But the resulting string contains a carriage return/line feed character, rather than "\n"
So how do I take a string that contains more than one line, and by examining each character in it, determine where the new lines begin?
edit: damn, posted this too soon. I figured out that if I convert each character to an int using bit.charasint, carriage returns have a unique value that I can use to identify them with.
But the resulting string contains a carriage return/line feed character, rather than "\n"
So how do I take a string that contains more than one line, and by examining each character in it, determine where the new lines begin?
edit: damn, posted this too soon. I figured out that if I convert each character to an int using bit.charasint, carriage returns have a unique value that I can use to identify them with.
