|
[Sponsors] |
August 4, 2010, 10:24 |
Hexadecimal and F90
|
#1 |
Member
ganesh
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
Dear Friends,
This is more a programming question rather than CFD. I have a hexadecimal data file pertaining to geometry information that I need to read. A sample data would read say 1a b 23 2 with a space between each entry and there are four entries in total. Can anyone tell how such a file can be read using F90 ? I know that Z identifies a hexadecimal integer while formatting, but given that the entries can have one character (like 'b') or two characters (like '1a') or more, how is it possible to have a generic READ statement for such a file ? I know this can be accomplished fairly easily in C/C++, but I would like to know how it can be done in F90 ? Thanks, Ganesh |
|
|
|