How to sort binary file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Man4ish
    New Member
    • Mar 2008
    • 151

    How to sort binary file?

    Hi,

    I am working on one practical problem where file size is around 100 GB(binary). I need to sort the file. How can i do it?

    Regards
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    You can start by defining sort as applied to a binary file.

    Comment

    • Man4ish
      New Member
      • Mar 2008
      • 151

      #3
      Sort means quick sort or need to write own function?

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        No what I mean is a binary file can contain anything, in fact every file is a binary file (even text files) so without knowing the format of what's in the file we can't really advise how to sort it.

        For example does it 100,000,000,000 1 byte records to 1000 100MB records?

        What is the defining feature of each record that you want to sort on?

        Comment

        Working...