Click here to Skip to main content
15,906,335 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have some text in notepad separated by spaces.So I want to display only text that are before spaces.example as shown below:

malign defame
ambivalence calmness
affluence rich
baffling puzzling.

Only words like malign,baffling...should be displayed in list box. Also words like defame,puzzling should be displayed in text box on button click of selected item from list box.
Posted
Updated 5-Dec-13 10:33am
v3
Comments
AlexDpars 5-Dec-13 14:40pm    
Which information do you need? How to open text file? Or how to separate string?
western_peey 5-Dec-13 15:07pm    
your question seems not to be clear, and also, kindly show what steps you have taken to enable us point you to the right direction
ZurdoDev 5-Dec-13 16:26pm    
Where are you stuck?
Dave Kreskowiak 5-Dec-13 16:30pm    
Do you understand the difference between Notepad and a text file?? Notepad doesn't expose any kind of interface to interact with it so you have to load the data from the text file you saved while in Notepad, NOT from Notepad itself.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900