Inputting data from a table of properties

This is a discussion on Inputting data from a table of properties within the C Programming forums, part of the General Programming Boards category; I need to include a function to retrieve information from a table of fluid properties in a program I am ...

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    1

    Smile Inputting data from a table of properties

    I need to include a function to retrieve information from a table of fluid properties in a program I am writing. I don't really know how to do this. The function needs to use a fluid temperature to look-up the fluid properties. It would be helpful to read the property table from a spreadsheet. Is there any way to read information from a spreadsheet file selectively?

    Please let me know if you have any tips.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,485
    > read information from a spreadsheet file
    Do you mean excel?

    The easy answer is to get excel to export the data as a Comma Separated Value (.csv) file. Since this is just a text file, its easy to parse using standard C functions.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about mass inputting data
    By Sedia in forum C Programming
    Replies: 3
    Last Post: 10-22-2008, 12:52 PM
  2. Printing out a data table in different sequences
    By TheDudeAbides in forum C Programming
    Replies: 2
    Last Post: 07-20-2003, 12:06 AM
  3. C diamonds and perls :)
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 05-16-2003, 10:19 PM
  4. ADO.NET and Relational Data problem.....how start?
    By gicio in forum C# Programming
    Replies: 2
    Last Post: 03-15-2003, 08:25 AM
  5. C Programming Question
    By TK in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 07-04-2002, 07:11 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21