LoadText(Url:object)

BlitzMax Forums/BlitzMax Programming/LoadText(Url:object)

ziggy(Posted 2006) [#1]
what's the use of URL? I thought it could be used to specify a real URL, but it doesn't work.

print LoadText("http://www.blide.org/version.txt")


should open a internet text file, and show ints contents, but it's not working, so, what's exactly this URL parameter? it's confusing...

[EDIT]
I see, not 'standar' notation, it has to be:
print LoadText("http::www.blide.org/version.txt")


fredborg(Posted 2006) [#2]
You need to specify the protocol correctly. BlitzMax does not use the same syntax as a browser. You should use "protocolname::" like this:
Print LoadText("http::www.blide.org/version.txt")



ziggy(Posted 2006) [#3]
thanks, is this notation standard in any platform?


fredborg(Posted 2006) [#4]
Yep, it's the same for Windows, Max, and Linux.