zimmer9
asked on
How to programitically read in the first 4 bytes of a txt file (that is attached) in C# and return its decimal value of '80' ?
Attached is a file that contains 1 row of data with 40 bytes.
I am writing a C# application that reads this file.
The first 4 bytes of the 1 record in this file represent a field "record length" as follows:
...& This 1st line is the decimal representation of the data
0005 This 2nd and 3rd line of the data represents the hexadecimal equivalent
0000
The value in positions 1 to 4 represents in EBCIDIC the value of '50' and this also represents a value of '80' in its decimal representation equivalent.
Do you know how to read this value into a variable field and interpret the value as '80' in decimal ?
ABC.txt
I am writing a C# application that reads this file.
The first 4 bytes of the 1 record in this file represent a field "record length" as follows:
...& This 1st line is the decimal representation of the data
0005 This 2nd and 3rd line of the data represents the hexadecimal equivalent
0000
The value in positions 1 to 4 represents in EBCIDIC the value of '50' and this also represents a value of '80' in its decimal representation equivalent.
Do you know how to read this value into a variable field and interpret the value as '80' in decimal ?
ABC.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.