I'm trying to read in binary files (written using C)
and also write binary files.
my small test program is:
INTEGER A, B, C
A = 20
B = 40
C = 70
OPEN(11, file='test.tmp', form='unformatted')
write(11) A, B, C
ifc -extend_source -w -nbs -zero -O3 -c test.for
17 Lines Compiled
ifc -extend_source -w -nbs -zero -O3 test.o -zero -L. -o test.x
but.... my output has an extra variable in it .
$ od -l test.tmp
0000000 12 20 40 70
Why is this occuring - I thought unformatted ouptut like this wouldn't put record info(?) at the start of the file. Am I missing something really simple here ?
I must also add that I am just starting to use this compiler.
Binary I/O in linux