read from text file and display

read from text file into a textarea

Page 1 of 1

1 Replies - 8132 Views - Last Post: 28 October 2008 - 03:45 AM Rate Topic: -----

#1 kharrat_01   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-October 08

read from text file and display

Posted 28 October 2008 - 03:26 AM

Dim FILE_NAME As String = "C:\Documents and Settings\Kharrat\My Documents\Visual Studio 2005\WebSites\WebSite10\test.txt"
		Dim TextLine As String

				   Dim objReader As New System.IO.StreamReader(FILE_NAME)

			Do While objReader.Peek() <> -1
				TextLine = objReader.ReadLine()
				TextArea1 = TextLine & Chr(13)
			Loop




I am trying to read from file and diaplay content in a textarea
TextArea1 = TextLine & Chr(13) is displaying an error

Is This A Good Question/Topic? 0
  • +

Replies To: read from text file and display

#2 Damage   User is offline

  • Lord of Schwing
  • member icon

Reputation: 300
  • View blog
  • Posts: 1,989
  • Joined: 05-June 08

Re: read from text file and display

Posted 28 October 2008 - 03:45 AM

shouldn't it read

textarea1.text = TextLine


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1