By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,009 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Add text from StreamReader to TextBox

P: 1
HI ALL


Plase help Me

I WANT TO ADDING TAXT FROM StreamReader TO TEXT BOX

will can ?
Jan 29 '08 #1
Share this Question
Share on Google+
3 Replies


debasisdas
Expert 5K+
P: 8,127
So what is the problem and what you have tried so far ?
Jan 29 '08 #2

Expert 5K+
P: 8,434
And in what version of VB?
Jan 29 '08 #3

jamesd0142
100+
P: 469
Expand|Select|Wrap|Line Numbers
  1. Function Readfile(ByVal abc)
  2.         Dim EntireLine As String
  3.         Dim oFile As System.IO.File
  4.         Dim oRead As System.IO.StreamReader
  5.         oRead = oFile.OpenText("C:\text123412.txt")
  6.         EntireLine = oRead.ReadToEnd
  7.         oRead.Close() 'test line
  8.         Return EntireLine
  9.     End Function
  10.  
Jan 30 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.