What is the best way to create a fixed width file in C#. I have a bunch of fields with lengths to write out. Say 20,80.10,2 etc all left aligned. Is there an easy way to do
You mean you want to pad all numbers on the right with spaces?
If so, String.PadRight or String.Format should get you on track.