By bloid
via ancientprogramming.com
Published: Mar 03 2008 / 07:19
I am working on a project where we need to manipulate fixed formatted text files. The fixed formatted files are used as protocol for interchanging data between some legacy mainframe systems. I have been looking for some already existing api for manipulating these fixed formatted data but couldn’t find any.
So this weekend I started implementing a solution based on some of the idea´s we got along the way.
Comments
dzonelurker replied ago:
"Use annotations to define attributes like: * Offset in text"
Annotations? OMG.
dkharlamov replied ago:
As for fixed length yes it's cool. But I ran into the issue to make the framework for all kinds of file (pipe delimited, fixed length, excel ones and so on.). We solved this issue by introducing Field interface which is pretty simple to use and complicated from implementation POV
Voters For This Link (9)
Voters Against This Link (0)