Results 1 to 6 of 6

Thread: [2005] add text to file(web).

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    [2005] add text to file(web).

    well wat i wanna do is make a program that can add text to a file on the web. how do u do that and make it so if there is a connection problem it is backed up so there is no overwriting error.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] add text to file(web).

    So are you saying that you have a Windows app and you want to access a text file on a server or that you have a Web app and you want to access a file on the local machine?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2005] add text to file(web).

    Quote Originally Posted by jmcilhinney
    So are you saying that you have a Windows app and you want to access a text file on a server or that you have a Web app and you want to access a file on the local machine?
    i have a windows app and i want to access a file on the web.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] add text to file(web).

    Where is this file located? You would have to download the file first, which you can do via HTTP, FTP or whatever. You can then edit the file, after which you need to upload it again. You will therefore need the required access to the server on which the file resides to be able to upload it. The easiest way to handle the file transfer is with the My.Computer.Network.DownloadFile and .UploadFile methods.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2005] add text to file(web).

    Quote Originally Posted by jmcilhinney
    Where is this file located? You would have to download the file first, which you can do via HTTP, FTP or whatever. You can then edit the file, after which you need to upload it again. You will therefore need the required access to the server on which the file resides to be able to upload it. The easiest way to handle the file transfer is with the My.Computer.Network.DownloadFile and .UploadFile methods.
    well is there a secure way to use the username and password with that to stop people from decompiling and stealing?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] add text to file(web).

    You'd need to either request credentials from the user each time or else store them somewhere with at least the password encrypted.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Click Here to Expand Forum to Full Width