Thread: Problem in socket programming to read ms word documents

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    21

    Problem in socket programming to read ms word documents

    Hi all,
    I'm writing a small socket program in C for client/server application which reads .doc at client and writes as .doc in server side. But not able read .doc file directly. How do i convert the .doc into a binary format so that i can transmit over a socket to the server?

    thanks and regards,
    Sri

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    You don't have to. This was transmitted from here to a server and from a server to you, but it is not in a binary format.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Seems not too different from MS Word 2007 document reading problem in C

    CLOSED

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Yeah, but I closed that one for idiocy - oh well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading Microsoft Word documents
    By Mavix in forum C# Programming
    Replies: 8
    Last Post: 08-04-2007, 07:39 AM
  2. generating word documents
    By viaxd in forum Windows Programming
    Replies: 1
    Last Post: 03-07-2006, 08:15 AM
  3. creating MS word documents
    By srraajesh in forum Windows Programming
    Replies: 2
    Last Post: 07-21-2005, 01:40 AM
  4. Word Documents
    By xlnk in forum Windows Programming
    Replies: 1
    Last Post: 09-15-2003, 06:18 PM
  5. Printing documents through word
    By Robert602 in forum Windows Programming
    Replies: 3
    Last Post: 04-21-2002, 01:23 PM