Thread: C output saved in word or excel

  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    1

    C output saved in word or excel

    Is there a way i can run a c program and saves the output in excel or word processor

  2. #2
    Registered User
    Join Date
    Feb 2013
    Posts
    22
    No, I don't think so... unless you manually type everything you see.
    It's a miracle that curiosity survives formal education - Albert Einstein

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    505
    Quote Originally Posted by Brian Joseph View Post
    Is there a way i can run a c program and saves the output in excel or word processor
    Not really. You can look up the file formats and write your own functions, in C, to output binaries in that format. But it's so much work for complex proprietary formats like Microsoft use that it's not very realistic.

    To get data into Excel, output it as a .csv file. For wordprocessing, there isn't such an easy answer, assuming that a simple text file is rejected as not having any formatting. You could try html, but I don't know how good a job MS do of reading it.
    I'm the author of MiniBasic: How to write a script interpreter and Basic Algorithms
    Visit my website for lots of associated C programming resources.
    https://github.com/MalcolmMcLean


  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    OpenDocument - Wikipedia, the free encyclopedia
    Recent versions of MS word, and OpenOffice/LibreOffice should be able to read ODF format files.
    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. Replies: 13
    Last Post: 09-20-2012, 11:48 AM
  2. save output file to excel format
    By imjustnew in forum C++ Programming
    Replies: 18
    Last Post: 12-31-2011, 11:09 AM
  3. bad characters in excel saved CSV file
    By rogster001 in forum C++ Programming
    Replies: 11
    Last Post: 05-27-2011, 09:59 AM
  4. How does MS Excel or Word draw to the screen??
    By Fremontknight1 in forum Windows Programming
    Replies: 2
    Last Post: 07-20-2008, 01:58 PM
  5. programming word and excel templates
    By money in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2003, 07:16 AM