rahul_0716
Newcomer
- Joined
- May 8, 2009
- Messages
- 2
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
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