Urs Eichmann [mailto:[EMAIL PROTECTED]] wrote:
> I have got a struct whose members consists only of > fixed-length Strings. I want to write them out into a flat > ASCII file with fixed length fields. Later I must be able to > re-read the flat file and put the data back into an ArrayList > of those structs. You could write a custom IFormatter which serializes to and from ASCII flat files. Depending on how many types you have, and expect to have, in your system this might be a better approach than writing a one time serialization routine which only handles a finite number of well-known types. Check out the System.Runtime.Serialization namespace[1] for more info. HTH, Drew [1] ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemruntimeserialization.htm You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.