Solved

loading richTextBox lines into a string array

Posted on 2004-09-21
4
314 Views
Last Modified: 2012-05-05
another newb question here:

I have a richTextBox that has values in it like say it has

C:\E000.log
C:\E002.log
C:\E0123.log


I want to load all those values into a string array... how could I do that please?

Thanks!
0
Comment
Question by:PoeticAudio
4 Comments
 
LVL 4

Accepted Solution

by:
NTAC earned 50 total points
ID: 12116966
yourArray= richTextBox.Lines;
0
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12117732
string [] yourarray= richTextBox.Lines.Clone();
0
 
LVL 10

Expert Comment

by:123654789987
ID: 12120928
U can try out this. It works , I had taken the input as
C:\E000.log
C:\E002.log
C:\E0123.log

                                               string delimStr = " ";
                  char [] delimiter = delimStr.ToCharArray();
                  string [] yourarray = null;
                  for(int i= 1;i<=3;i++)
                  {                        
                         yourarray= richTextBox1.Text.Split(delimiter,i);
                  }
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now