:58A:/C/81000098099CL
CBNINGLA
:72:/CODTYPTR/012
/CLEARING/0003
/SGI/DBLNNGLA
am trying to read the swift message above that comes in a text file, line :58A: and line :72:, am having a little issue. My code only reads line
:58A: like this C/81000098099CL,
but I want it to read down the line before getting to line :72:, in short, the output should be like this for line
:58A: C/81000098099CL CBNINGLA.
Same also for line :72:, this is because the messages come formatted in this form. This is my code below.
if (line.StartsWith(":58A:"))
{
inflow202.BENEFICIARY_INSTITUTION = line.Substring(5)
}
if (line.StartsWith(":72:"))
{
inflow202.RECEIVER_INFORMATION = line.Substring(5);
}
Please how can I modify my present code to get my desired output, to enable me save the multiple lines as a string into the database.
:58A: == C/81000098099CL CBNINGLA
:72: == /CODTYPTR/012/CLEARING/0003/SGI/DBLNNGLA