Sorting - textfile

  • Thread starter Thread starter Mobile Boy 36
  • Start date Start date
M

Mobile Boy 36

Hello,



The .NET compact framework is power with a lot powerful objects.

I want to sort a (csv) textfile.



At moment I'm using a System.IO.FileStream, a System.IO.Streamreader and an
Array.

I loop the streamreader (while streamreader.peek>-1) and put the elements
into the array.

A one-dimensional array has a sort opportunity (array.sort)



I also discovered the Microsoft.VisualBasic.Collection object.

But this one has no sort opportunity.



What is the most efficient way to read and sort a (csv) textfile?

Or is my methodology 'the' correct one?

Is there no obect like a stringlist (with sort property) in Borland Delphi?

Does someone have a suggestion?



Thanks,

Mobile boy
 
Back
Top