473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How can I write to text file.(ftp)

I want to write to text file, the follow text " My Name Is
mike"

Now, I have used the following sysntax:
dim strFilePath as string = "C:\"
dim strFileName as string = "MyFile.txt"

fileopen(1,strfilepath & "\" & strfilename,output)
write(1," My Name Is mike")
fileclose(1)

now, assum that the filepath is a folder that I am ftp to
it. for example : ftp:\\www.mysite.com\myfolder.

now, how can I open the file to write to in the myfolder
folder instead of the C Drive.
Sincerely yours

Mike John

Nov 17 '05 #1
1 3061
You will have to set up an FTP client that allows the file to be opened and
remembers the path to overwrite the file when save is clicked. I would start
looking at sites like www.planetsourcecode.com or www.sourceforge.com (or
even www.gotdotnet.com in the new workspaces) for code projects using FTP.
You will have to use some form of store (whether in memory or on the drive)
prior to sending via FTP, as FTP works with files. It is not the same
concept as opening a file and editing on a local drive (well, ultimately it
is, but there are more layers of crap).

You will want to catch exceptions on save as the connection may time out.
You will have to reopen the FTP site for the user and then FTP the file back
in these instances.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

************************************************** **************************
****
Think Outside the Box!
************************************************** **************************
****
"Mike John" <Ri********@Hotmail.com> wrote in message
news:0d****************************@phx.gbl...
I want to write to text file, the follow text " My Name Is
mike"

Now, I have used the following sysntax:
dim strFilePath as string = "C:\"
dim strFileName as string = "MyFile.txt"

fileopen(1,strfilepath & "\" & strfilename,output)
write(1," My Name Is mike")
fileclose(1)

now, assum that the filepath is a folder that I am ftp to
it. for example : ftp:\\www.mysite.com\myfolder.

now, how can I open the file to write to in the myfolder
folder instead of the C Drive.
Sincerely yours

Mike John

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Tibby | last post by:
I need to read/write not only text files, but binary as well. It seems like on binary files, it doesn't right the last 10% of the file. -- Thanks --- Outgoing mail is certified Virus...
12
by: scorpion53061 | last post by:
Is it possible to read and write to text files that are remote (sitting on my server that can be accessed from the internet.)
8
by: MLH | last post by:
Am trying to import 20,000+ lines of text in a file FTP'd from a UNIX platform to windows via FTP session in a DOS box. About 2000 records have multiple lines in them separated by CRLF's. ...
10
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in...
0
by: tony | last post by:
hi. the web server company block all the write permission for the IUSER . they told me to change the settings in my side, to upload and write files throught FTP user permissions. I add the <...
4
by: stuart.jones | last post by:
Dear all I have a Windows Service that retrieves some data as XML, applies an XSLT to produce a CSV which is saved to the filesystem as a text file. This all works fine. Depending upon the...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
3
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
4
by: Ross | last post by:
Hello, I am trying to Read and Write to a text file on a web server using Microsoft Visual Basic 2005 Express Edition. So far I have managed to complete my testing with a local text file using...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.