DownloadFile without URL
Posted: Fri Mar 12, 2021 5:59 pm
I use an external file to store the server url, and load my ftp adress info a variable serverconfig$ to use with DownloadFile.
My current usage is to load a top10 highscore list from a server and into a virtual file. This works well, and also using UploadFile to update the file on the server.
Then I found that if serverconfig$ contains only a filename, without a network address then it will work by loading a local file.
Since the documentation says that the url$ argument must begin with http or ftp prefix, I wonder it this is a hidden feature in DownloadFile or just a coincidence? (UploadFile does not accept just a filename as an argument.)
My current usage is to load a top10 highscore list from a server and into a virtual file. This works well, and also using UploadFile to update the file on the server.
Then I found that if serverconfig$ contains only a filename, without a network address then it will work by loading a local file.
Since the documentation says that the url$ argument must begin with http or ftp prefix, I wonder it this is a hidden feature in DownloadFile or just a coincidence? (UploadFile does not accept just a filename as an argument.)