Re: read key/value pairs from delimited text file into collection?
From: Ron (bapa118_at_online.nospam)
Date: 10/18/04
- Next message: juanv_at_microsoft.com: "Removing a corrupt .NET 2.0 Beta"
- Previous message: Marian Veteanu: "IEXPLORE.EXE.config"
- In reply to: Ron: "Re: read key/value pairs from delimited text file into collection?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 18 Oct 2004 14:53:03 -0700
Looks like i am gonna go with the split functions and a hash table.
thanks anyway,
Ron
"Ron" wrote:
> Would it be possible to get a code sample of the regular expression route if
> it is not too much trouble? I need to take this file and create afixed field
> text file with just the values. The files are rather large so speed is
> important. I was looking at the split function where i would have to read
> one like at a time, and I am looking for the fastest way possible to do this.
>
> Any help you can provide is appreciated. In the mean time, ill be looking
> up the regexp route.
>
> Thanks,
>
> ron
>
> "Sriram Krishnan" wrote:
>
> > Hmm..I'm not sure whether this is some new type of text file format but
> > reading it into a collection would be pretty simple. You could either use a
> > couple of String.Splits or take the regular expressions route .
> >
> > --
> > Sriram Krishnan
> >
> > http://www.dotnetjunkies.com/weblog/sriram
> >
> >
> > "Ron" <bapa118@online.nospam> wrote in message
> > news:A0816C6A-7485-44C8-A5B9-FEE41A721638@microsoft.com...
> > >I have a text file with the following format (pipe delimited)
> > >
> > > |column1=value|column2=value|column3=value|column4=value|...
> > > |column1=value|column2=value|column3=value|column4=value|...
> > >
> > >
> > > I have two questions.
> > >
> > > 1. Is this some new type of text file format and if so, what is the name
> > > of
> > > it.
> > > 2. What functions can I use in .NET to read the key/value pairs into a
> > > collection.
> > >
> > > Thanks,
> > >
> > > Ron
> > >
> > >
> >
> >
> >
- Next message: juanv_at_microsoft.com: "Removing a corrupt .NET 2.0 Beta"
- Previous message: Marian Veteanu: "IEXPLORE.EXE.config"
- In reply to: Ron: "Re: read key/value pairs from delimited text file into collection?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|