Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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' ?

Posted on 2016-10-18
1
Medium Priority
?
96 Views
Last Modified: 2016-10-20
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
0
Comment
Question by:zimmer9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 41848698
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question