Sorry about the empty reply just then; finger trouble :-(
On 24/01/2009 5:13 PM, Sheetal Gophane wrote:
Thank you all for your suggestions.
I followed the following way
1.Define a class
2.In class overwrite __cmp__ function.
3.While reading file populate class object and append it in array.
4.Ca
function.
Thanks,
Sheetal
-Original Message-
From: users-boun...@lists.ironpython.com
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Slide
Sent: Friday, January 23, 2009 9:15 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Sorting CSV file
On Fri, Jan 23, 2009 at 7:28 AM
-
From: users-boun...@lists.ironpython.com
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Slide
Sent: Friday, January 23, 2009 9:15 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Sorting CSV file
On Fri, Jan 23, 2009 at 7:28 AM, Michael Foord
wrote:
> Slide wrote:
>>
On Fri, Jan 23, 2009 at 7:28 AM, Michael Foord
wrote:
> Slide wrote:
>>
>> On Fri, Jan 23, 2009 at 6:21 AM, Dody Gunawinata
>> wrote:
>>
>>>
>>> 1. Define a class to hold individual data
>>> 2. Go through every single line
>>> 3. Split based on ',' and insert the values to the object and add them
Slide wrote:
On Fri, Jan 23, 2009 at 6:21 AM, Dody Gunawinata
wrote:
1. Define a class to hold individual data
2. Go through every single line
3. Split based on ',' and insert the values to the object and add them to
the list
4. Sort the list based on the fields you want.
On Fri, Jan 23, 200
On Fri, Jan 23, 2009 at 6:21 AM, Dody Gunawinata
wrote:
> 1. Define a class to hold individual data
> 2. Go through every single line
> 3. Split based on ',' and insert the values to the object and add them to
> the list
> 4. Sort the list based on the fields you want.
> On Fri, Jan 23, 2009 at 10
1. Define a class to hold individual data2. Go through every single line
3. Split based on ',' and insert the values to the object and add them to
the list
4. Sort the list based on the fields you want.
On Fri, Jan 23, 2009 at 10:28 AM, Sheetal Gophane <
sheetal_goph...@persistent.co.in> wrote:
>
Sheetal Gophane wrote:
Hi All,
I have csv file in following format
LogTime,ApetClientID,OperationName,Status,StartTime,Duration
2009-01-07/10:41:03,1,fun1,1,2009-01-07/10:41:02,314.8173162
2009-01-07/10:41:03,1,Login,0,2009-01-07/10:41:02,618.2695007
2009-01-07/10:41:03,1,Login,1,2009-0
Hi All,
I have csv file in following format
LogTime,ApetClientID,OperationName,Status,StartTime,Duration
2009-01-07/10:41:03,1,fun1,1,2009-01-07/10:41:02,314.8173162
2009-01-07/10:41:03,1,Login,0,2009-01-07/10:41:02,618.2695007
2009-01-07/10:41:03,1,Login,1,2009-01-07/10:40:52,10997.29274