Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / reading a file from the internet?

Author
Message
slicer 4 ever
19
Years of Service
User Offline
Joined: 11th Jul 2006
Location: currently: planet gamma3295
Posted: 17th Jul 2006 07:34 Edited at: 17th Jul 2006 07:38
is there a way to read a file from the internet?(and if so do i need the patch?)

edit: for example:

i upload a .txt(or a pecific file type if there is one)
then call that file from db

my smiles love me =-)=-)=-)(-=(-=(-=
The Wilderbeast
20
Years of Service
User Offline
Joined: 14th Nov 2005
Location: UK
Posted: 17th Jul 2006 21:27
if you own the website then you can use the ftp commands to retrieve the files and then open them. But otherwise you'de have to use the ftp commmands to hack into a website to get the files(not recommended!!!)

There might be a .dll out there that runs with internet explorer that u could use.

OMG It's the Wilderbeast
Canadian Bush Air | Bush flying at its best! |http://www.canadian-bush-air.tk
nojbox87
21
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 18th Jul 2006 00:02 Edited at: 18th Jul 2006 00:05
cant remember where but on this forum i saw a post on being able to auto update software using ie to download thigs from the internet. i will taje a look but cat remember the name of the thread

[edit]
http://forum.thegamecreators.com/?m=forum_view&t=73996&b=10

I am a Christian and I know that God loves me. That is what makes my life so great!
slicer 4 ever
19
Years of Service
User Offline
Joined: 11th Jul 2006
Location: currently: planet gamma3295
Posted: 18th Jul 2006 08:38 Edited at: 18th Jul 2006 08:53
ok i'll check it and thanks=-)

edit: well after looking at that i'm ganna say an example and could you tell me if it is possible:

1.
upload a file to the internet?
aka rpg:
create new player to a .txt
upload it to the site
set the path
save the path on to the comp as a .txt
next time you run the program grab the .txt from the comp
set the current path to the .txt file
then call the file from the internet
2.
open up a .txt file edit it and then save it back to it's location
aka rpg:
open file
read current level say:
level = 1
set this to a variable say: level#
level# = level
battle
level# = level# + 1
write to file:
level = level#
save the file back to the site
end

i well try to see if i can do this myself but i probable well fail
edit: is there a way to close down the program afterwards?

my smiles love me =-)=-)=-)(-=(-=(-=
The Wilderbeast
20
Years of Service
User Offline
Joined: 14th Nov 2005
Location: UK
Posted: 18th Jul 2006 21:04
it is possible if you own the site to...

upload a file to the internet?
aka rpg:
create new player to a .txt
upload it to the site
set the path
save the path on to the comp as a .txt
next time you run the program grab the .txt from the comp
set the current path to the .txt file
then call the file from the internet
open up a .txt file edit it and then save it back to it's location
aka rpg:
open file
read current level say:
level = 1
set this to a variable say: level#
level# = level
battle
level# = level# + 1
write to file:
level = level#
save the file back to the site
end


the main command you will need for that is the download and upload ftp commands.


OMG It's the Wilderbeast
Canadian Bush Air | Bush flying at its best! |http://www.canadian-bush-air.tk
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 18th Jul 2006 21:31
Depends if your website builder supports the .exe file extension.

Login to post a reply

Server time is: 2026-07-06 20:15:20
Your offset time is: 2026-07-06 20:15:20