Read String and store into mutiple variable.
Posted on 2006-05-16
Hi, my .dat file looks something like this:
I want to read this in a loop so that it has
The character "#" would cause this to loop the read again. Why would I do this you may ask? the reason is I want to create these variable so I can use them as my insert in the JDBC connection, such as insert into table A value (var1,var2,var3,var4,var5).... This insert statment will get call as many time as there are number of "#" char in the file,