Write a text file which is uploaded, impossible?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Write a text file which is uploaded, impossible?

  1. #1
    Join Date
    Jun 2010
    Posts
    4

    Smile Write a text file which is uploaded, impossible?

    I have uploaded a text file named "Text.txt", here is its link:

    http://www.fileden.com/files/2009/7/21/2516457/text.txt

    Now, i need to read and write data to this text file. To read, i may use some way, such as downloading it to my computer. But to Write into this file, i cannot find any clues.

    I read some information about uploading by FPT, but this way is not possible in my software.

    May you show me code to do this hope? Thanks very much.

  2. #2
    Join Date
    Jun 2009
    Posts
    135
    You cannot open a file for editing across the internet. You must download it, alter it, and then put it back...



    Good Luck

  3. #3
    Join Date
    Jun 2010
    Posts
    4
    Thank you very much. I understand what you say, but how to put it back ?

    Have you ever done any function like this? please show me some useful idea to upload overwrite the old text file. I use host fileden.com to upload. My matter is how to upload it by code.

    Plz help me till then end.

  4. #4
    Join Date
    Jun 2009
    Posts
    135
    Use your friends (yahoo, google, ask, answers, bing) to search for vb6 upload file, vb6 ftp upload, or any other keywords you can think of as there is a whole lot of code out there...



    Good Luck

  5. #5
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  6. #6
    Join Date
    Jun 2010
    Posts
    4
    Thank you very much. I'll try to do it by your useful ideas!

  7. #7
    Join Date
    Jun 2010
    Posts
    4

    Sorry, i have problem with ChilkatUpload Active X

    I followed the link which Hack gave to me:

    http://www.example-code.com/vb/upload_with_events.asp

    and test it, but VB announced an error: "Active X can't creat object" at the line :

    Set upload = New ChilkatUpload

    Note: I downloaded ChilkatUpload.dll and added it into preferences of VB before testing it but it makes no changes - VB still anounces error.

    --------------------
    wait... Although I didn't test that code successfully, but in the code, i don't find the code which will use to log in the upload host. You can use Upload.Password, but this Active X don't have "Upload.username". so I don't understand that if i have an account to log in, how can i log in the host before uploading files ?

    I created an account in the host Fileden.com (which i usually use it).
    ID: uploadtester
    password: 123456

    ---> Please test this code for me, i live in the country where the Information technology doesn't develop as the world.

    ---> Pro, Help me please !!!!!

Similar Threads

  1. Reading Text From a Text File
    By adey in forum VB Classic
    Replies: 1
    Last Post: 03-12-2007, 09:54 AM
  2. create a text file (write and read onto it)
    By ckwai85 in forum VB Classic
    Replies: 3
    Last Post: 03-02-2007, 09:24 AM
  3. Text file update Access Table
    By charligov in forum VB Classic
    Replies: 2
    Last Post: 01-22-2007, 11:00 AM
  4. File uploading / objFile.Write problem
    By Tomer Cagan in forum ASP.NET
    Replies: 1
    Last Post: 07-24-2001, 09:01 AM
  5. Replies: 1
    Last Post: 05-03-2000, 03:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center