Hello,
I am controlling each newline(rows) in a textbox with a db. If a line has only space characters or just a newline (when you just hit enter), I want to know this. For example
---------
1123
34324
43523 //3.th line
--------
When I hit enter on the 3.th line, it creates one more line but it has no character. How can I check this line?
if (str[dongu].ToString() == "")
{
// do something when recognize last row.
}
How can I check a new line and space characters
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

yokzuRank #5,421 · 300 reputationPosted Jun 7, 2011, 10:52 PM EDT
if (str[dongu].ToString().Length != 0)
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jun 8, 2011, 5:13 AM EDT
Yes.. You can Sleepy.. So think twice before posting query !.