Solved

loading richTextBox lines into a string array

Posted on 2004-09-21
4
318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

707 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