I wrote an XmlReader which configurably read from fixed-width files. I could
read through 20Mb of data in 5 seconds on my puny laptop.

This is pretty easy to do.


Richard

> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
> Urs Eichmann
> Sent: 29 April 2002 15:58
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Copy Struct members to a flat file?
>
>
> 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.
>
> Back in (I won't say "good old") VB6 days, I could use Put and
> Get with user
> defined Types (= .NET structs) for this. Is there an easy way (OTHER THAN
> manually writing out every member) to accomplish this?
>
> BTW, I know I could use Serialize and Binary or XML files, but due to
> reasons which are out of my influence, it HAS to be a fixed length ASCII
> text file.
>
> Thanks for any suggestions
>
> Urs
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to