use delimiters to separate multiple parts of a single line

I have a data packet “**s12*0234*e30#r54~**s12*0234*e30#r54″…the “~” separates one packet of data.i have used the following code

Scanner inFile1 = new Scanner(new File("2.txt")).useDelimiter("~");

to separate each packed.now i need to separate “s12″,”0234″..(all the data).

can i tried this code to do that

Scanner inFile1 = new Scanner(new File("2.txt")).useDelimiter("*#~");

ultimately i have to put it into a database .


Download use.delimiters.to.separate.multiple.parts.of.a.single.line.zip
Direct Link


Download


Download use.delimiters.to.separate.multiple.parts.of.a.single.line.zip
Mediafire


Download


Download use.delimiters.to.separate.multiple.parts.of.a.single.line.zip
Depositfiles


Download


Download use.delimiters.to.separate.multiple.parts.of.a.single.line.zip
UPLOADING.com


Download


Download use.delimiters.to.separate.multiple.parts.of.a.single.line.zip
Fileswap


Download

Both comments and pings are currently closed.

Comments are closed.