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 / C++ / MFC
  4. Reading a text file from a remote machine in LAN using c, c++, vc++

Reading a text file from a remote machine in LAN using c, c++, vc++

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
5 Posts 4 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.
  • M Offline
    M Offline
    manoharbalu
    wrote on last edited by
    #1

    Using C/C++ code, How to read a text file (approx size 100GB) line by line from a remote machine in LAN directly without downloading or copying the file

    L C D 3 Replies Last reply
    0
    • M manoharbalu

      Using C/C++ code, How to read a text file (approx size 100GB) line by line from a remote machine in LAN directly without downloading or copying the file

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You would need a client application on the remote system, or remote access, to read the file and pass the data to your program.

      1 Reply Last reply
      0
      • M manoharbalu

        Using C/C++ code, How to read a text file (approx size 100GB) line by line from a remote machine in LAN directly without downloading or copying the file

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        With a typical client/server application, your TCP server runs on the remote machine, waiting for 'gimme next line' command from the client. On command reception, it reads the line and answers to the client with the read line content.

        1 Reply Last reply
        0
        • M manoharbalu

          Using C/C++ code, How to read a text file (approx size 100GB) line by line from a remote machine in LAN directly without downloading or copying the file

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          is the machine doing the reading on the same network as the machine with the file? If so, just use a UNC, something like: \\machine\folder\...\file.ext

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          C 1 Reply Last reply
          0
          • D David Crow

            is the machine doing the reading on the same network as the machine with the file? If so, just use a UNC, something like: \\machine\folder\...\file.ext

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #5

            Nice. :thumbsup:

            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