Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 136,420 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,350 people online right now. Registration is fast and FREE... Join Now!




Read A partical part of a text file n display in text box

 
Reply to this topicStart new topic

Read A partical part of a text file n display in text box, there are different blocks in a file i want to reacd a particular bloc

inakhan_1
15 Oct, 2008 - 01:40 AM
Post #1

New D.I.C Head
*

Joined: 15 Oct, 2008
Posts: 1

OpenFileDialog1.Filter = " Text files(*.txt)|*.txt|Image Files (*.bmp)|*.bmp|All files (*.*)|*.*"
OpenFileDialog1.ShowDialog()
files = OpenFileDialog1.FileName
UtilityClass.FilePathNameExtension(files, MyPath, Name, Ext)
txtFileName = File.OpenText(files) 'OpenFileDialog1.FileName)
Dim fleReader As New FileStream(files, FileMode.Open, FileAccess.Read)
Dim stmReader As New StreamReader(fleReader)
For i = 1 To 3
readim.ReadTextImage(txtFileName, Label, SampleNo , Height, Width)
If TextLabel.Text = Label And TextSample.Text = SampleNo Then
Me.TextBox1.Text = Label & SampleNo & Heigh t& Width
'Me.TextBox1.Text = stmReader.ReadLine()
End If
Next
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 01:08PM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month