Click here to Skip to main content
15,886,060 members

Comments by veezo (Top 1 by date)

veezo 16-Jun-13 0:10am View    
i know the code to open and read the file which is shown below
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Declarations
Dim objStreamReader As New StreamReader(Server.MapPath("TextFile.txt"))
Dim arrText As New ArrayList

' Loop through the file and add each line to the ArrayList
Do While objStreamReader.Peek() >= 0
arrText.Add(objStreamReader.ReadLine)
Loop

' Close the reader
objStreamReader.Close()

' Bind the results to the GridView
GridView1.DataSource = arrText
GridView1.DataBind()
End Sub

now this code give me all the lines in one column of grdiview can u give me the code about what u r saying...? please its really very important