i have an input file that has a series of numbers and letters in rows like this: 56 ee 34 10 22 cb 1c 56 ee 60 01 f0 70 7e ... ... ... etc. i want to take each number to categorize and compare it to something else. each number meaning '56','ee','34', etc. and then write the entire file to an output file. what is the best way to do this? using a StringTokenizer? or StreamTokenizer? any help is much appreciated.
Chicken Farmer ()
posted 13 years ago
StringTokenizer seems like a safe bet for me. Grab each line as a String, pass it to the tokenizer and iterate over the characters, doing whatever processing needs to be done. Not sure how much more optimized you could get without sacrificing simplicity.