Hi Tek-Tip members,
Can anyone help me in finding an C# version of Reading a Binary File sequentially.
In Fortran I am writing the file with foll parameters
ACCESS = 'SEQUENTIAL'
FORM = 'UNFORMATTED'
With BinaryReader in C# I am able to read the contents as Stream but not Sequentially.
I have also attached a binary file which has content of 3 different datatypes and the sequence of writing is: CHARACTER(30), INTEGER, REAL
The resulting output is:
"Mike Tyson"
1234567890
1000.50
Can anyone help me in finding an C# version of Reading a Binary File sequentially.
In Fortran I am writing the file with foll parameters
ACCESS = 'SEQUENTIAL'
FORM = 'UNFORMATTED'
With BinaryReader in C# I am able to read the contents as Stream but not Sequentially.
I have also attached a binary file which has content of 3 different datatypes and the sequence of writing is: CHARACTER(30), INTEGER, REAL
The resulting output is:
"Mike Tyson"
1234567890
1000.50