I have a requirement to serialize a list of objects to a flat file. The calls will be something like:
class MyObject { public int x; public int y;
There are no special serializers for flat files. Use string formatting and manipulation functions, e.g. String.Format ("{0,10}{1,-20}{2,-40}{3,-100}", x, y, a, b) should produce a line formatted according to your format.
String.Format ("{0,10}{1,-20}{2,-40}{3,-100}", x, y, a, b)