hello every body
in my project i must to read and write from txt file according the content of text box (txtNotes) and when a command button(save) is clicked
when i try to write to txt file the problem is happen
the problem is when i click the save button no any change occured in the file (i.e there are not save)
and there are my code in the save button :
Quote:
Private Sub save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles save.Click
Dim filename As String
filename = Server.MapPath("Notes.txt")
Dim writer As New StreamWriter(filename, False, System.Text.Encoding.Unicode)
writer.Write(txtNotes.Text)
writer.Flush()
writer.Close()
End Sub
|
and thanks:)