VB EE Read/Write to a text file
-
:)Hi How do you write the content of a text box to a file, appending new content and reading back that file into the text box showing the last written content at the top of the file? Many thanks for any assistence. newtWales
-
:)Hi How do you write the content of a text box to a file, appending new content and reading back that file into the text box showing the last written content at the top of the file? Many thanks for any assistence. newtWales
hai you can try this out......... dim a as string a=textbox1.text File.AppendAllText("g:\text.text", a) File.AppendAllText("g:\text.text", Now.Date) File.AppendAllText("g:\text.text", " ) File.AppendAllText("g:\text.text", Now.DayOfWeek.ToString) plz reply if this solve your problem
-
hai you can try this out......... dim a as string a=textbox1.text File.AppendAllText("g:\text.text", a) File.AppendAllText("g:\text.text", Now.Date) File.AppendAllText("g:\text.text", " ) File.AppendAllText("g:\text.text", Now.DayOfWeek.ToString) plz reply if this solve your problem
-
Dim reader As New IO.StreamReader(Server.MapPath("MyTextfile.txt")) Textbox.text = reader.ReadToEnd() same like write also raj