Re: FTP access help !! vb6
Welcome to the forums. :wave:
Wouldn't it just be easier to modify your text file and once done, upload it to the FTP site?
Re: FTP access help !! vb6
thank you, well i am trying to do a S.W to write on the FTP text file !
and to get data from there !
Re: FTP access help !! vb6
Is the text file being written to while it is on the FTP server?
Re: FTP access help !! vb6
no, i want to create that text file and to write in it
as you know, i used in local pc this code ---
vb Code:
open ("C:/t/data.txt") for append as #1
print #1,data
close #1
---
it will create the file and write in it, is there a way to open the FTP and do the same !! and how should i tell the program about the username and pass ?
Re: FTP access help !! vb6
is there a way to open the FTP and do the same !!
Not in the same way that you are doing it on your PC. You do not open a file on a FTP server, append to it, then close it. You create your file on your PC and then send the completed file to the FTP server using FTP protocol. There is plenty of code samples around here that show you how to do a FTP download but I have not seen one that shows you how to do a FTP upload but I'm sure there is such code here. Unless you can find some example of how to upload via FTP you may have to either write your own FTP client application or use a third party FTP client like CuteFTP, for example.
Re: FTP access help !! vb6
Re: FTP access help !! vb6
thank you so much for this help :)
Re: FTP access help !! vb6
the ftp apis are quite easy to use