473,405 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

MultiLine Data Split Problem

Hello

I am developing software for a machine, i receive data from machine in this format

(cmd,ygdata,ok,00030)
(ygdata,000100,Jessy,00001,000000,02)
(ygdata,000104,Arlene,00001,000000,00)
(ygdata,000102,Yousuf,00001,000000,02)
(ygdata,000106,Essam,00001,000000,02)
(ygdata,000201,Mila,00001,000000,02)
(ygdata,000202,Ashley,00001,000000,02)
(ygdata,000203,Hind,00001,000000,02)
(ygdata,000204,Walid,00001,000000,02)
(ygdata,000205,Shahbin,00001,000000,00)
(ygdata,000401,Dennis,00001,000000,02)
(cmd,ygdataend,ok)
Now i want to devide this entire string into a string array,
How can i do that ?

I m writing Code like this

Expand|Select|Wrap|Line Numbers
  1. string[] str = this.txt.Text.Split("\r\n",StringSplitOptions.None);
Can any bod please help me to split the string by each line.
Mar 14 '07 #1
1 1185
Hello

I fixed the Proble

the solution was

Expand|Select|Wrap|Line Numbers
  1. string[] str = this.txt.Text.Split((char)13);
Mar 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Iver Erling Årva | last post by:
I am looking for a way to let the users copy e.g. a multi-line address from a textfile and paste it into a webpage where there is one input field for each address line in such a way that not only...
4
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system...
2
by: ryanbreakspear | last post by:
Hi all, Is there an easy way to delete the first line from a multi line text box? I've tried assigning the .Lines to various containers but can't seem to find an easy way to get the data back. ...
7
by: Joel Finkel | last post by:
Folks, I have a form that has several TextBoxes, some of which have the TextMode set to MultiLine. Each is pre-loaded with data from a database. The user is allowed to modify each entry. The...
2
by: Allen | last post by:
In regex, ^ and $ shoudl match start/end of a line when the 'm' /multiline modifier is set -- however I just spent the better part of the day trying to figure out why it wasn't working as expected....
9
by: John Salerno | last post by:
How do you make a single string span multiple lines, but also allow yourself to indent the second (third, etc.) lines so that it lines up where you want it, without causing the newlines and tabs or...
11
by: Brian | last post by:
I have been working on a data reception system.. I am still finding my way around Javascript, though I am accomplishing much. I just fixed a flaw that was really hard to find. The symptoms are...
7
by: Milsnips | last post by:
Hi there, Can anyone help me out on this one? i want to read each line entered in a multiline textbox and store it into an array. I cant find any properties for this in the control, the only...
2
by: Steve | last post by:
Hello, I'm new to the asp.net programming world and one of my first projects is to create an entry form for managers to enter in some information about their employees. My form has a multiline...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.