i already can read from text file using string tokenizer and store it into the database. now the problem is, after it read line by line... but when it stores it.. it doesn't store the data in orderly format. it jumble up everything without following the sequence like in the text file? can anyone help me on this? thanks
If you iterate using a Tokenizer, you get the tokens in the order they appear in the input String.
But you mentioned "inserting into DB": Did you try to add a "order by" clause to your SQL ?. The DB does not guarante to keep the data in "insertion" order.
Joined: Oct 11, 2006
oh. i am using db4o as my database. so it's a object database. i don't think there is any command for me to sort. but my team mate already sorted that out. i am not sure how yet but i will ask her and see. thanks alot for your help
subject: sorting of data during String Tokenizer method