|
-
April 3rd, 2013, 12:06 PM
#9
Re: Writing and Reading Binary data in FORTRAN and C++
 Originally Posted by Vectorprg
I used exactly same code as you mentioned. But it does not give me the number. dwRead becomes equal to 6 which is less than size of a double number and does not make sense (sizeof(double) = 8)
I still do not know where is my problem!
Well, did you do a very simple test Paul mentioned in the post#4:
 Originally Posted by Paul McKenzie
Why not just write a small C++ program and save 12.54 to a file. Now save 12.54 to a file in your Fortran program. Are both files exactly the same in terms of the bytes they store?
Last edited by VictorN; April 3rd, 2013 at 01:02 PM.
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|