Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading a text doc?
#13
Code:
Dim reader As System.IO.StreamReader
Dim filename As String = "exp-easy.txt"
reader = System.IO.File.OpenText(filename)
textbox1.Text = reader.ReadToEnd
reader.Close()

Here, this will get you started. This will open a textfile named exp-easy.txt and load it into a textbox. Adapt it to suit your needs.
Reply


Messages In This Thread
Reading a text doc? - by pers2981 - 11-12-2010, 08:54 AM
RE: Reading a text doc? - by KoBE - 11-12-2010, 10:08 AM
RE: Reading a text doc? - by pers2981 - 11-12-2010, 01:09 PM
RE: Reading a text doc? - by thanasis2028 - 11-13-2010, 03:59 AM
RE: Reading a text doc? - by Xzotic - 11-13-2010, 08:11 AM
RE: Reading a text doc? - by pers2981 - 11-13-2010, 09:56 AM
RE: Reading a text doc? - by KoBE - 11-13-2010, 02:02 PM
RE: Reading a text doc? - by pers2981 - 11-13-2010, 02:41 PM
RE: Reading a text doc? - by Xzotic - 11-13-2010, 02:44 PM
RE: Reading a text doc? - by KoBE - 11-13-2010, 03:05 PM
RE: Reading a text doc? - by pers2981 - 11-13-2010, 02:47 PM
RE: Reading a text doc? - by pers2981 - 11-13-2010, 03:09 PM
RE: Reading a text doc? - by KoBE - 11-13-2010, 03:22 PM
RE: Reading a text doc? - by pers2981 - 11-13-2010, 03:26 PM
RE: Reading a text doc? - by Xzotic - 11-13-2010, 03:27 PM
RE: Reading a text doc? - by pers2981 - 11-13-2010, 03:40 PM
RE: Reading a text doc? - by KoBE - 11-13-2010, 03:54 PM
RE: Reading a text doc? - by pers2981 - 11-13-2010, 04:02 PM
RE: Reading a text doc? - by JMK940 - 11-14-2010, 04:36 AM
RE: Reading a text doc? - by pers2981 - 11-14-2010, 10:29 AM
RE: Reading a text doc? - by Xzotic - 11-15-2010, 11:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TextBox2.Text | Transfer Text to ListBox Die 3 2,619 01-02-2012, 06:09 PM
Last Post: AceInfinity
  Text Converter. Turn your text upside down! Red X 29 8,189 08-01-2011, 07:46 AM
Last Post: Red X

Forum Jump:


Users browsing this thread: 2 Guest(s)