Hello friends, This way i did my data conversion tool functionality. I implemented this as a stand alone and GUI based application which took 4 command line args input file(ascill text), output file(binary file), delimiter and no of columns. Based on the no of columns i created text fields for both field names and sizes. I did small validations also here. Based on the output file and delimiter i created a binary file and read the info from input ascii text file and wrote in the binary file using Data class constructor and Add method(already provided by sun). I was able to populate the data in JTable and did add new record,delete and modify existing records functionalities successfully. It hardly took 4 hours inorder to do this. So, friends if any thing wrong in my functionality please correct me. I am looking forward to hear your comments and opinions. Thanks in advance, Sreedhar Garimella.
Sridhar, From your post I don't see from how you get the field names and their sizes.. In my DCT I use a properties file with field names and their sizes. I pass this property file, input ASCII file and the output binary file name as arguments to DCT. -Rajesh.
Hi, I downloaded my assignment today and i didn't see anywhere saying that we have to provide/create data conversion tool. Also the instruction clearly says that the data file is binary file. i am confused!!!???!!!
Hi Rajesh, I am displaying the text fields based on the cmd argument of column count. For example if it is 9 then 9 text fields for field names and 9 for field sizes respectively. Then the user enter each field name and its size in those text fields. After that i am passing these values along with the ascii text file. If any thing wrong please clarify. Thanks in advance, sreedhar garimella.