S
Sender
(Ignore this if this duplicate entry)
Scenario:
I have a notepad file c:\myfile.txt. There are 10 lines in that file with
text as follows:
This is my First line.
This is my Second line.
....................................
This is my Tenth line.
With the help of filestream, streamreader objects I could read the file. I
copied the contents of file in a string variable var1. Now I want to display
a specific line from the variable e.g. line no. 3 ("This is my third line").
What I did is (as suggested by some yesterday in this newsgroup) I created a
textbox1 and copied the contents of variable to this textbox1 and used the
textbox1.Lines(2) method to pick a specific line, and set the visible
property to false.
Is there any other way so that there is no need for textbox (though it is
hidden).
Thanks!
Scenario:
I have a notepad file c:\myfile.txt. There are 10 lines in that file with
text as follows:
This is my First line.
This is my Second line.
....................................
This is my Tenth line.
With the help of filestream, streamreader objects I could read the file. I
copied the contents of file in a string variable var1. Now I want to display
a specific line from the variable e.g. line no. 3 ("This is my third line").
What I did is (as suggested by some yesterday in this newsgroup) I created a
textbox1 and copied the contents of variable to this textbox1 and used the
textbox1.Lines(2) method to pick a specific line, and set the visible
property to false.
Is there any other way so that there is no need for textbox (though it is
hidden).
Thanks!