Link to home
Start Free TrialLog in
Avatar of zimmer9
zimmer9Flag for United States of America

asked on

Using C#, how could you improve upon my method of writing out a merged, compressed file?

I am writing a C# application with .Net Framework 4.6 and VS2015.
I read a file comprised of logical records defined by Record Type.
The file contains check images. For a given check, the file contains
the front image of a check followed by the back image of a check.
Within each Record type 50, position 35 contains a value of '1' when the
following Record type 52 (variable length record) contains the Front Image of a check.
If position 35 has a value of '0', the following Record type 52 contains
the back image of a check.
Within Record Type 52, positions 105-120 contain the length of its record.
The check image is stored starting in position 121.
Thus, for each check, there are 2 record type 50 records and
2 record type 52 records, representing the front and back of each check.
In the attached code snippet, can you think of a way to improve upon my
method of capturing the Front Image and Back Image of a check
and then write out to a COMPRESSED file, a merged check image.
The merged output file contains the front image of the check on top
and the back check image on the bottom (below the front check image).
RECTYPE50ORIG.txt
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial