To extract a string until it encounters a space after a specified string from textf

Joined
May 9, 2009
Messages
2
Programming Experience
Beginner
hai guys

i have a text file with the content as

Number:1234567890 Alphabet:ldskfjlds Alphabet:weiouruewoiru
Alphabet:abcdefghijklmnopqrstuvwxyz
Alphabet:abcdefghijklmnopqrstuvwxyz
Number:1234567890

so while reading the file if encounter string "Number:" then i have to read

the number eg:124567890 and insert into the database.

i was able to identify the presence of the string in the text file by the

code

if (System.Text.RegularExpressions.Regex.IsMatch(st,"Number:")
Textbox1.Text="found";

i think i may be possible with System.Text Namespace Methods..but i dont

know thosemethods
 
Back
Top