Here's the problem I have, I need to generate a flat string file with a rather complex (imposed) structure based on field length and start and stop positions. It file will be generated from a .Net application (data stored in SQL Server). It has different headers with different templates. The structure might also change overtime. The same type of file will also have to be parsed back into my system.
What I would preferably like is creating a template that defines the look of the file, for example with the following attribute: Name, Type, Field Length, Start & End Position, Default value.
And be able to generate the file from some kind of view data and then to parse it back from the same template.
I'm pretty sure I'm not the first one to have that kind of trouble, but I cannot find a good library on the Internet. I've looked at StringTemplate but it doesn't seem to be able to create templates based on length and position of data.
Thanks!