Thread: Reading Excel Files?

  1. #1
    Registered User Daniel's Avatar
    Join Date
    Jan 2003
    Posts
    47

    Reading Excel Files?

    Hello,

    I am trying to write a program which will add a number of my choice to every interger inside a Excel file. My question is how do I read an excel file? Is it the same thing like reading a txt file?

    Thanks for your help,
    Daniel
    C++ Homepage: http://darkeldar77.tripod.com/cpp.html

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If it's a csv, then it can be accessed as a text file...if it's a proper xls file, you need to use COM

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    COM = Component Object Model

    As I understand it:

    COM is used when you copy something from Excel, and paste it into Word, etc. COM has been around awhile, so maybe Microsoft is using / pushing something else by now. (?)

    It's way more complicated than copying text. There are whole books on using COM. Although, maybe it's not that hard to read/write a number from a cell. (?)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading data from consecutively named files
    By a1pro in forum C Programming
    Replies: 10
    Last Post: 04-15-2005, 01:48 AM
  2. reading excel files...
    By gaah in forum C++ Programming
    Replies: 2
    Last Post: 02-18-2005, 09:55 PM
  3. A little help reading from files...
    By Invincible in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2002, 10:43 AM
  4. problem reading files in C
    By angelfly in forum C Programming
    Replies: 9
    Last Post: 10-10-2001, 11:58 AM
  5. Need Advice in reading files
    By jon in forum C Programming
    Replies: 4
    Last Post: 10-07-2001, 07:27 AM