Please give me some suggesstion for below,
I have batch process for which I will get a txt file as a input which will have 150k byte length or lesser. The txt file will have a header line like "date, time etc...." as one line.
and remaining will as xml tags.
Before the xml tag starts, I will have 20 byte string like "A0000001-0000001-1-4" which is
Auto Number + unique seq# + split xml seq # + total split xmls.
If the txt file is 150k then the input txt fiel is splitting the string to 5.
so in between xml i will be having
This is used to spllit the string in the iput file to 5 parts for some reason.
I am using File stream, to open the file and do my operations.
Now, i want to read the file and find out for
and remove it so that i will get the proper xml.
and in the same way as output from my batch i will get the same kind of xml string.
I need to find out the size and if it is > 30k, i need to split the xml string using (need to insert the below split string in between the xml string and send).
Below, is the sample xml string,
Please tell me the best way to do it.
Basically while reading input file I need to remove the split string (F0008243-0000001-1-5) and stror in DB.
After processing i need to insert the split string into xml string and send.
Please suggesst me the best approach.