Board index » cppbuilder » Text File Sort function

Text File Sort function

Does anybody know where I can find a function to sort the content of a
(formatted) text file?

THANK YOU VERY MUCH!!

Paolo

 

Re:Text File Sort function


That depends on how exactly you want to sort it.  IF you want to alpha sort
it on a per-line basis, then you could use a TStringList with it's Sorted
property set to true.  Otherwise, you'll just have to read the file youself,
sort the memory, then re-save the file.

Gambit

Quote
"Paolo Borlandi" <pborl...@tin.it> wrote in message news:3cd2a2a0_2@dnews...
> Does anybody know where I can find a function to sort the content
> of a (formatted) text file?

Other Threads