Show A specific Text from text File

bilalzaink

Member
Joined
Dec 21, 2011
Messages
5
Programming Experience
Beginner
hi
all

EX
textfile name(abc.txt) contain on one line like this "a1sd512x1:00252:0123410" (the tree words in text file, and second 2 words start from ":" sign )
so how can show this theree words separate in 3 textbox....textbox1 textbox2 and textbox3????
 
Hi,

Once you have read the single line of text from the file into a String variable you can then use the String.Split method to break down that string, via the colon character, into an array. Have a look here:-

String.Split Method (Char[]) (System)

Once done, you can then assign each element of the array to TextBox's as you need to.

Hope that helps.

Cheers,

Ian
 
Back
Top