How can I write to text file.(ftp)

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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:\\[url]www.mysite.com\myfolder[/url].

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


    Sincerely yours

    Mike John

    Mike John Guest

  2. Similar Questions and Discussions

    1. Write to text file?
      The age old question has been "how do you use Flash to write to a file", and the answer has and likely will always be "you can't. You have to use a...
    2. write text file to the server
      What I am trying to do is get query results then use the results mixed with a little bit of simple HTML and then save that as a .txt file in a...
    3. write a text file to a server
      hi is it possible to open, change and save a simple txt file on a remote server with flash mx without php or cfm? the idea is to have a very simple...
    4. Write in a text file ?!
      Is there a way to write and read in a text file ? I know how to read from a textfile, but I was wondering is there's any function or action to print...
    5. How To write to a text file.
      Hello! Do the following (this will work, I promise :-): C# using HelpMePlease; class GetHelp {
  3. #2

    Default Re: How can I write to text file.(ftp)

    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 [url]www.planetsourcecode.com[/url] or [url]www.sourceforge.com[/url] (or
    even [url]www.gotdotnet.com[/url] 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" <RiadeAsleh@Hotmail.com> wrote in message
    news:0dd801c34d2f$3d901400$a301280a@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:\\[url]www.mysite.com\myfolder[/url].
    >
    > now, how can I open the file to write to in the myfolder
    > folder instead of the C Drive.
    >
    >
    > Sincerely yours
    >
    > Mike John
    >

    Cowboy \(Gregory A. Beamer\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139