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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sort Integer Array 1
Integer Array Sort 1
Sorting Array using Icomparable 6
Text parser 4
sorting a one dimensional array 3
Sorting two-dimensional array 1
Two-Dimension array sort 9
Sorting a string array 8

Back
Top