Welcome Guest ( Log In | Register )

      
Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide.
 
Reply to this topicStart new topic
save text to file vb
shawn_programing
post Jan 7 2006, 02:54 AM
Post #1


New Member
*
Posts: 6
OS: 2000



is their a way to save the text to a file and the have it up load it to a web page to be down load to a clante?
Go to the top of the page
 
+Quote Post
Hai Mac
post Jan 7 2006, 02:38 PM
Post #2


Member
***
Posts: 260
OS: Win XP



Hello shawn,
I don't understand your question: what is a clante?. And do you want the upload to be done via VB or manually?
Go to the top of the page
 
+Quote Post
shawn_programing
post Jan 8 2006, 07:52 PM
Post #3


New Member
*
Posts: 6
OS: 2000



clante = client . and the upload i would like to be vb.
Go to the top of the page
 
+Quote Post
Hai Mac
post Jan 9 2006, 10:55 AM
Post #4


Member
***
Posts: 260
OS: Win XP



OK, I am not sure about your programming skills yet, but let's try it. I suppose you have at least intermediate knowledge and experience in VB.

Saving files is done like this:
CODE

Open "C:\file.txt" For Output As #1
Write #1, "Some text"
Close #1

Change the C:\file.txt to your desired file name

Now to uploading the file. First add an Inet control through Project->Components. Add it on your form. Then add this code somewhere where you want
CODE

Inet1.Protocol = icFTP
Inet1.URL = "url"    'change this to the url where you want to upload the file
Inet1.UserName = "username"   'change this to the username
Inet1.Password = "pwd"   'enter your password here
Inet1.Execute , "PUT C:\file.txt file.txt"
Do While Inet1.StillExecuting
   DoEvents
Loop


Change "PUT C:\file.txt file.txt" to "PUT your_file_on_your_disc future_name_of_the_file_on_the_server"

I hope that was helpful huh.gif happy.gif , believe, this is the simplest way.
Go to the top of the page
 
+Quote Post
shawn_programing
post Jan 9 2006, 02:33 PM
Post #5


New Member
*
Posts: 6
OS: 2000



can you do this with more then 1 filed ( Txet box)
Go to the top of the page
 
+Quote Post
Hai Mac
post Jan 11 2006, 05:50 AM
Post #6


Member
***
Posts: 260
OS: Win XP



please please check what you write because I have problems understanding your replies. Try this:
CODE

Write #1, txtField1.Text
Write #1, txtField2.Text
...

etc.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts   1 / 200 29th December 2007 - 01:46 PM
magusbuckley started - last by magusbuckley
No new 26 / 706 7th March 2008 - 04:19 PM
FOXYGRANDMA started - last by FOXYGRANDMA
No New Posts   4 / 1,074 22nd April 2008 - 03:12 PM
Doctor Inferno started - last by dsenette
No New Posts   6 / 401 4th May 2008 - 08:01 AM
lem.rar started - last by lem.rar

RSS Time is now: 1st December 2008 - 07:08 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.