save text to file vb
Posted 07 January 2006 - 02:54 AM
Posted 07 January 2006 - 02:38 PM
I don't understand your question: what is a clante?. And do you want the upload to be done via VB or manually?
Posted 09 January 2006 - 10:55 AM
Saving files is done like this:
Open "C:\file.txt" For Output As #1 Write #1, "Some text" Close #1Change 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
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 , believe, this is the simplest way.
Posted 11 January 2006 - 05:50 AM
Write #1, txtField1.Text Write #1, txtField2.Text ...etc.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users