Load data from text file to textbox


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Load data from text file to textbox

  1. #1
    Join Date
    Apr 2005
    Posts
    14

    Thumbs up Load data from text file to textbox

    Hi EveryBody:

    by using VB.net :

    How can I load data from text file to textBox ?

    any help will be appreciated

    regard's

    Husam

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Dim Reader As StreamReader = File.OpenText("d:\path\file.txt")
    Dim FileText As String = Reader.ReadToEnd()
    Reader.Close()

    txtBox.Text = FileText
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center