Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Organizing a text file

Options
  • 30-11-2004 10:43pm
    #1
    Registered Users Posts: 3,969 ✭✭✭


    Is it possible to write a code for VB that reads a text file of hex values, like 1223A,AD43B,D45C,D43,DAC54,ADCBA4, and organise them in increasing size?


Comments

  • Closed Accounts Posts: 82 ✭✭cyberbob


    sure is


  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    Do people in the same class not talk to each other anymore?


  • Registered Users Posts: 3,969 ✭✭✭mp3guy


    i'm not in a class, i'm 16. Is there anyway to do it?


  • Closed Accounts Posts: 82 ✭✭cyberbob


    yeah , do instr to find the commas , and then yer bogstandard hex converting function to convert to numbers (not sure if this is necessary) , write a sorting routine , and print back out to the file


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Use what you're been told already about seperating the text, then Google for the bubble sort algorithm.


  • Advertisement
  • Closed Accounts Posts: 82 ✭✭cyberbob


    Use what you're been told already about seperating the text, then Google for the bubble sort algorithm.

    pish , challenge yerself to do it in loglinear time! without googles help


  • Registered Users Posts: 3,969 ✭✭✭mp3guy


    thanks, i'll give it a go


Advertisement