Write to file on the net

Xell
03-30-2003, 08:32 AM
Hey there,
this is my first post, and i hope i'm in the right place! :)

I'm making a program where i need to write to a file on the internet (in this case it's a .txt file)

After this, i need to read that same file, and load it into a text box...

i tried using .refresh, but it's still blank. I believe i'm not writing to the file correctly.... I'm also worried i need to use WINSOCK, but as i have learning edition, i am unable to use WINSOCK.

Can anyone give some help?

Thanks in advance!

Thinker
03-30-2003, 08:44 AM
Assuming you mean write a file to a different computer on the internet
you would have to have a program on that different computer to receive
the file. FTP is the most obvious example of that. You have an FTP
client program and the other computer runs a FTP server program. To
write using windows file functions would require windows networking
access to the file. Over the internet this means something like a VPN
(vitual private network). If you can install a program on the server you
can write both the client and the server using winsock.

Xell
03-30-2003, 08:51 AM
Assuming you mean write a file to a different computer on the internet
you would have to have a program on that different computer to receive
the file. FTP is the most obvious example of that. You have an FTP
client program and the other computer runs a FTP server program. To
write using windows file functions would require windows networking
access to the file. Over the internet this means something like a VPN
(vitual private network). If you can install a program on the server you
can write both the client and the server using winsock.

Argh!! Just what i didn't want to hear!!

Lol, thanks for the reply thinker...

Hopefully i finish the program soon! :P

excaliber
03-30-2003, 09:09 AM
If you have the learning edition, you can get around the restriction...kinda. You still cant use the control, but you can get a class that manipulates the Winsock API.

Heres one: http://www.vbip.com/winsock-api/csocket-class/csocket-class-01.asp

Thinker
03-30-2003, 09:34 AM
However since the learning edition doesn't compile machine code EXEs, I
don't think I would want to develop and install a server program made
with it on some other computer. And in any case it would also require
the VB runtimes installed there too. If the server supports ASP, putting
the text in a html form textarea and submitting it to an ASP page that
can then use the FileSystemObject to write the text to the server should
work.

excaliber
03-30-2003, 10:49 AM
Ahh, good point thinker. Without making EXE's, the class would be kinda useless, unless you wanted to run the IDE the whole time...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum