Dear guys,
I have output a data structure into a file.
open (unit = 10, file = "filename", access = "sequential", form = "unformatted")
write (unit = 10) a_super_large_array
if ( some condition ) write (unit = 10) another_super_large_array
close (unit = 10)
So I successfully output the data into a file size at around 20 GB.
But the problem is I am not able to read the file back
open (unit = 10, file = "filename", access = "sequential", form = "unformatted")
read (unit = 10) a_super_large_array
if ( some condition ) read (unit = 10) another_super_large_array
close(unit = 10)
It chunks out an error message,
FIO/stdio: Success
FIO-F-/unformatted read/unit=10/error code returned by host stdio - 0.
File name = "filename" unformatted, sequential access record = 1
But I checked out that the error code 0 means successful.
I tried with smaller file in order of MB, none of the error messages popped out.
How do I solve this problem?