Thread: Inputting data from a table of properties

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > 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.

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, 09: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