I want to extract one property of steam say enthalpy for a particular pressure and temperature from a table which has a list for pressures, temperatures and enthalpy, these data is stored in an excel file how do I call these particular value of enthalpy in c++ programme
calling a paricular data from excel sheet
Collapse
X
-
Ah, a fellow thermodynamist! Unfortunately, you wouldn't be able to extract data from an excel file directly without knowing the filetype specification. Excel files are "binary" and data cannot be read using C++ as you would do with a simple ASCII data file. You would have to read a bytestream and parse the data according to the specification to find the particular thermal property reference of interest.
Here's a link to the specification. -
Originally posted by archonmagnusAh, a fellow thermodynamist! Unfortunately, you wouldn't be able to extract data from an excel file directly without knowing the filetype specification. Excel files are "binary" and data cannot be read using C++ as you would do with a simple ASCII data file. You would have to read a bytestream and parse the data according to the specification to find the particular thermal property reference of interest.
Here's a link to the specification.Comment
-
Originally posted by archonmagnusAh, a fellow thermodynamist! Unfortunately, you wouldn't be able to extract data from an excel file directly without knowing the filetype specification. Excel files are "binary" and data cannot be read using C++ as you would do with a simple ASCII data file. You would have to read a bytestream and parse the data according to the specification to find the particular thermal property reference of interest.
Here's a link to the specification.Comment
-
Originally posted by donbockActually, you can export from Excel into a CSV (comma separated values) file. This is a text file where each rows are separated by newlines and columns are separated by commas. You should find it easier to parse the CSV file.Comment
Comment