CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Hexadecimal and F90

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2010, 09:24
Default Hexadecimal and F90
  #1
Member
 
ganesh
Join Date: Mar 2009
Posts: 40
Rep Power: 17
ganesh is on a distinguished road
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
ganesh is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 22:49.