Retrieving a line from a string.
What I want is retrieve a line from a string, but the problem is that the string has a couple of lines, so what can I do?
|
Re: Retrieving a line from a string.
Emmm i am not sure but... doing a contain "^n" wouldn't work?
EDIT: Wait, try looping all chars and use equal betwen the character found and 0xA (LF ASCII character http://www.asciitable.com) |
Re: Retrieving a line from a string.
Quote:
You can also use strtok or other string functions to split and get each line. |
| All times are GMT -4. The time now is 14:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.