Support Forums
Help with a part of chat program... - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: Help with a part of chat program... (/showthread.php?tid=6865)



Help with a part of chat program... - Danny - 05-06-2010

Ok so I can't post the source code because this is a big project and I don't want people stealing it but basically I have a chat room and the messages are saved (encrypted) on a remote FTP server on plain text files. I want there to be a clear-chat "button" I guess, what code would I use to replace the contents of a txt file on a FTP server (replace it with nothing - " ")?


RE: Help with a part of chat program... - daneasaur - 05-06-2010

Why not just delete the file, and create a new blank file?


RE: Help with a part of chat program... - Danny - 05-06-2010

Alright, how would I do that?


RE: Help with a part of chat program... - daneasaur - 05-06-2010

No idea. I've never worked with an FTP. xD sorry


RE: Help with a part of chat program... - Danny - 05-06-2010

Sad This sucks.


RE: Help with a part of chat program... - Fragma - 05-09-2010

This might help you

http://www.example-code.com/vbdotnet/ftp.asp


RE: Help with a part of chat program... - Danny - 05-09-2010

Thanks, I will look at that but I think this is now solved Smile


RE: Help with a part of chat program... - //Pretextâ„¢ - 05-18-2010

Try just making a new blank one?
Not sure, i tried to think of something sorry :/