C++ programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • premkumarsp1
    New Member
    • Feb 2008
    • 12

    C++ programming

    I need to write a c++ program to read a csv data from a socket and generate a CSV file. Could someone help me with this programming...
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by premkumarsp1
    I need to write a c++ program to read a csv data from a socket and generate a CSV file. Could someone help me with this programming...
    The idea would be quite simple.
    1)Initiate a client connection with the server
    2)From server side start sending the contents of the CSV file chunk by chunk

    3)Open a file
    4)In the client side read the socket's data using the read command and put the contents in the file - in a loop
    5)Close the file

    Try working on this idea

    Raghuram

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Of course, I assume you know the format of the CSV file. Otherwise, you won't ba able to read it.

      Comment

      • premkumarsp1
        New Member
        • Feb 2008
        • 12

        #4
        Originally posted by gpraghuram
        The idea would be quite simple.
        1)Initiate a client connection with the server
        2)From server side start sending the contents of the CSV file chunk by chunk

        3)Open a file
        4)In the client side read the socket's data using the read command and put the contents in the file - in a loop
        5)Close the file

        Try working on this idea

        Raghuram
        thanks..
        i am working on it..

        Comment

        Working...