It should allow the user to upload the small (20-50 byte) file containing their highscore to a designated /incoming/ directory on DC. I would have another utility program that allows me to scan that particular online folder and download all such files currently residing their, opening each, retrieving username and highscore, and compiling an HTML file showing a listing of the game's users and their highscores in descending order.
think about what you are saying.
You want client to be able to "upload a 20-50 byte
FILE" and then you want them to be able to view other people's high scores by scanning a server folder, downloading all other highscore files, opening each, reading info, and then "
compiling an HTML file" on the local pc and displaying it.
You need to shift your thinking.
You do not want this.
What you want is something 1000x simpler and more straightforward.
You want a server script that will accept two very simple http requests, the first will be submission of high score info, it could be as simple as accepting an http request of http:/kyrathaba.com/highscoresubmit?name=mouser&score=54 or you could use a post form method.
The server script will then simply ADD the users score to its high score database.
And then to VIEW high scores from the desktop application, you will simply make another web query to the server script of the form
http://kyrathaba.com/highscores.php which will RETURN AN HTML FILE that the client can display to view high scores. Users could even just view that web page directly. (Or alternatively return a response with some raw data from the database for you to format and display).
You need to stop thinking about doing this purely from the desktop application using protocols like ftp. That way lies madness.
You need to wrap your head around web coding so that you have a better taste for what things you should be doing server-side vs. desktop client side. Go read a few pages about web coding (php, perl, whatever) and using database stuff on the server, etc. You will find it is both easy, fun, and liberating.