Hi,
I am looking to split the line in the text file to individual text file.
Example in my current text file(RetrieveFile.txt):
<?xml version="1.0" encoding="UTF-8"?><ERRORACK><HEADER><MESSAGE_TYPE>ErrorAck</MESSAGE_TYPE><MESSAGE_ID>20160104171116001</MESSAGE_ID><ERROR_FILE>SCPreClrDec</ERROR_FILE><SEND_DATETIME>2016-01-04T17:11:16</SEND_DATETIME></HEADER><DETAIL><ERRORACK_ID>CERR20160104171116000001</ERRORACK_ID><RECORD_ID>CDCC20070604010101000001</RECORD_ID><REASON><REASON_CODE>908</REASON_CODE><REASON_REMARK>Container Information Not Found</REASON_REMARK></REASON></DETAIL></ERRORACK>
<?xml version="1.0" encoding="UTF-8"?><ERRORACK><HEADER><MESSAGE_TYPE>ErrorAck</MESSAGE_TYPE><MESSAGE_ID>20160104170749001</MESSAGE_ID><ERROR_FILE>SCPreClrDec</ERROR_FILE><SEND_DATETIME>2016-01-04T17:07:49</SEND_DATETIME></HEADER><DETAIL><ERRORACK_ID>CERR20160104170749000001</ERRORACK_ID><RECORD_ID>CDCC20070604010101000001</RECORD_ID><REASON><REASON_CODE>908</REASON_CODE><REASON_REMARK>Container Information Not Found</REASON_REMARK></REASON></DETAIL></ERRORACK>
I want to split into RetrieveFile1 and RetrieveFile2 but i do not know how to split it. Here is my code for it.
public class split {
Much help needed. Am just a beginner in
java role.
Thank you