- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear All,
I use the binary files generated by VB/Pascal in my fortran application. Currently I am converting it to ASCII format and read in Fortran. However, it takes lot of time in converting and reading. I understand, fortran's binary storage format is different from VB/Pascal. Is there anyway, Fortran can read it directly?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is VB/Pascal? I know VB and I know Pascal but I can't put the two together.
Fortran can handle any kind of binary format if you know what the file structure is. If you open the file FORM='UNFORMATTED',ACCESS='STREAM', you will just be reading bytes of data with no interpretation or record structure.
Can you attach a ZIP of a sample data file and tell us what it is supposed to represent (layout of floats, integers. etc.) and the values, and we can tell you how to read this in Fortran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot Steve. It works perfectly. I missed the specifier ACCESS='STREAM' and that caused all the issues.
I meant VB or Pascal.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page