|
-
Mar 3rd, 2001, 10:34 AM
#1
Thread Starter
New Member
Alright, I made a chat program, and it requires a text file, thats on my friends FTP server...It appends to the file, and the file is read for the chat window...Heres the code:
------------------------------------------------------------------------
Private Sub cmdSend_Click()
'"sends" the message
Dim FileNum As Integer
FileNum = FreeFile
Open "ftp://wp.dyndns.org/var/ftp/upload/murali/Chat.txt" For Append As FileNum
If txtMsg.Text = "" Then
lblErrormsg.Caption = "Insert a message before you hit send"
Close #FileNum
Else
Print #FileNum, Login; " >>"; " "; txtMsg.Text
txtMsg.Text = ""
Close #FileNum
End If
End Sub
------------------------------------------------------------------------
The open address is correct, when I type it in as a URL in a Web Browser, it works fine...Otherwise, won't work at all...Any suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|