Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Sending a file

Sending a file

Scheduled Pinned Locked Moved C#
questionlounge
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sharpiesharpie
    wrote on last edited by
    #1

    How can i retrieve a file from the computer my program is on? let's say the program creates a text file and i want it to send the file to me, how can i do it? I know there are lots of ways, but I'd like to get all kinds of suggestions, for my program and just for general knowledge...so...how do I do it then?

    C 1 Reply Last reply
    0
    • S sharpiesharpie

      How can i retrieve a file from the computer my program is on? let's say the program creates a text file and i want it to send the file to me, how can i do it? I know there are lots of ways, but I'd like to get all kinds of suggestions, for my program and just for general knowledge...so...how do I do it then?

      C Offline
      C Offline
      CompMan44
      wrote on last edited by
      #2

      There ARE a lot of ways, but you're probably going to want something network-based. You could:

      • Have the program create/copy the file to a shared folder on "your" computer.
      • Have it upload the file to an e.g. HTTP server running on your computer.
      • Have it send the contents via some other network protocol.
      • Have it e-mail the file to you.
      • Have it NET SEND the contents to you.
      • Have it post the contents to an online website.
      • (Assuming both computers are within reasonable distance but are NOT networked) have it copy the file to a floppy/flash disk, then hand it off to a robot that will bring it to you, insert the disk, and copy the file back to your computer.

      These are just some random (and somewhat ludicrous!) methods, but you get the idea. Cheers. ^_^ P.S. I would personally try them in about the order they are listed. Actually, I wouldn't even try the last one.

      A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

      S 1 Reply Last reply
      0
      • C CompMan44

        There ARE a lot of ways, but you're probably going to want something network-based. You could:

        • Have the program create/copy the file to a shared folder on "your" computer.
        • Have it upload the file to an e.g. HTTP server running on your computer.
        • Have it send the contents via some other network protocol.
        • Have it e-mail the file to you.
        • Have it NET SEND the contents to you.
        • Have it post the contents to an online website.
        • (Assuming both computers are within reasonable distance but are NOT networked) have it copy the file to a floppy/flash disk, then hand it off to a robot that will bring it to you, insert the disk, and copy the file back to your computer.

        These are just some random (and somewhat ludicrous!) methods, but you get the idea. Cheers. ^_^ P.S. I would personally try them in about the order they are listed. Actually, I wouldn't even try the last one.

        A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

        S Offline
        S Offline
        sharpiesharpie
        wrote on last edited by
        #3

        well, obviously email is the best way, but i couldn't find any ways of doing it (there has to be a mail server configured in the computer...its annoying)

        C 1 Reply Last reply
        0
        • S sharpiesharpie

          well, obviously email is the best way, but i couldn't find any ways of doing it (there has to be a mail server configured in the computer...its annoying)

          C Offline
          C Offline
          CompMan44
          wrote on last edited by
          #4

          From what I know of SMTP (admittedly not much) you don't need to set up a server, you just have to know how to communicate with the receiver's e-mail provider. But whichever method you choose, just make sure it fits the situation.

          A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups