hi guys
i have a
test file like raju.txt
naga raju rama raju
using java.util.Scanner we can split like
naga
raju
rama
raju
the code is
public class FileRead1 {
public static void main(
String arg[])
{
try
{
File f=new File("test.txt");
Scanner ss=new Scanner(f);
while(ss.hasNext())
{
String hh=ss.next();
System.out.println(""+hh);
//System.out.println(""+hh);
}
}catch(Exception e){}
}
}
}
what my doubt is how to store each split into database.
my table is like
colum1 colum2 colum3 colum4
naga raju rama raju
is there any possible to store like that
give the idea.
thanks
naga