Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > Write to file on the net


Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2003, 08:32 AM
Xell Xell is offline
Newcomer
 
Join Date: Mar 2003
Location: London, UK
Posts: 2
Post Write to file on the net


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!
Reply With Quote
  #2  
Old 03-30-2003, 08:44 AM
Thinker Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default

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.
__________________
Posting Guidelines
Reply With Quote
  #3  
Old 03-30-2003, 08:51 AM
Xell Xell is offline
Newcomer
 
Join Date: Mar 2003
Location: London, UK
Posts: 2
Default

Quote:
Originally Posted by Thinker
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
Reply With Quote
  #4  
Old 03-30-2003, 09:09 AM
excaliber's Avatar
excaliber excaliber is offline
Senior Contributor

* Expert *
 
Join Date: Nov 2002
Location: Ohio, USA
Posts: 1,828
Default

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/csoc...t-class-01.asp
__________________
RandomIRC - Your neighborhood's friendly IRC channel (irc.randomirc.com - #code)

"Perl - The only language that looks the same before and after RSA encryption."
Reply With Quote
  #5  
Old 03-30-2003, 09:34 AM
Thinker Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default

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.
__________________
Posting Guidelines
Reply With Quote
  #6  
Old 03-30-2003, 10:49 AM
excaliber's Avatar
excaliber excaliber is offline
Senior Contributor

* Expert *
 
Join Date: Nov 2002
Location: Ohio, USA
Posts: 1,828
Default

Ahh, good point thinker. Without making EXE's, the class would be kinda useless, unless you wanted to run the IDE the whole time...
__________________
RandomIRC - Your neighborhood's friendly IRC channel (irc.randomirc.com - #code)

"Perl - The only language that looks the same before and after RSA encryption."
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Problem - PLs help urgenlty dpdsouza Installation / Documentation 4 12-02-2004 07:09 PM
Doesn't want to register! MikeyM Installation / Documentation 5 03-02-2003 08:22 PM
Inability of VB to Find Target Write File First_Timer Database and Reporting 2 01-22-2003 12:08 PM
File System Object(FSO) Complete Ref. d1rtyw0rm Tech Discussions 24 08-31-2002 02:08 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->