CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Hexadecimal and F90

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 4, 2010, 09:24
Default Hexadecimal and F90
Join Date: Mar 2009
Posts: 40
Rep Power: 10
ganesh is on a distinguished road
Sponsored Links
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 ?


ganesh is offline   Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Sponsored Links

All times are GMT -4. The time now is 00:14.