[help] Write a text file to a server
hey guys im making a shoutbox that uses webclient to read and download the textfile. and a timer to refresh.
i have a few questions
my downlaod method
my read method
how would i write to a text file on a server?
and how would i hide the file so people cant edit the text file when it dl's
i have a few questions
- How would i write the textfile from my program
- how do i hide the textfile from users (such as change file location my method will be below)
my downlaod method
Code:
WebClient1.DownloadFileAsync(New Uri("http://mysite/chat.txt"), "chat.txt")
Code:
Private Sub WebClient1_DownloadFileCompleted(ByVal sender As System.Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles WebClient1.DownloadFileCompleted
Dim read As String = My.Computer.FileSystem.ReadAllText("ragenews.txt")
TextBox3.Text = "" & read & ""
End Sub
and how would i hide the file so people cant edit the text file when it dl's