![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Break down a string into array Topic Summary: Created On: 11-Apr-2005 14:17 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Attached should work | |
![]() |
|
I have a single string with newlines (character return) as separators, for example: ABC\nCDE\nFEG\nLMN
How can I break down the above string and put it into an array? I have looked into Regexp, but can't get it work (shame). string inPut = "ABC\nCDE\nFEG\nLMN" // returns from an external program Needs to convert into a string array: string sData[count] = {"ABC", "CDE", "FEG", "LMN"} Thanks in advance!!! Thanh |
|
![]() |
|
![]() |
|
Attached should work |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Break down a string into array
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.