Hi,
There is a text file (with a date stamp on file name) which is created by another application and this application writes some data into this text file all day long.On new day a new file is created etc etc. I would like to read this text file for checking if there is "Bank Reply is NULL" entries.When I get this entry in the text file, I will send a notification email with TrnsNo and AgnNo. Lets say if I get this entry in the file at 10 pm and send an email then I should check this entry after 10 pm.I dont want to catch the old entries. Is there a way to implement this?
Best Regards.
Here is a portion of content of txt file:
--------------------------------------------------------------------------------------
|2012-01-05T08:38:00+02:00| Soap Client has been created successfully.
|2012-01-05T08:38:10+02:00| Soap Client received bank reply successfully.
|2012-01-05T08:38:10+02:00| Request Values for Validation:
-------------------------------
TrnsNo:
TrnsTime:
TrnsType:
AgnNo:
InvoiceNo:
Amount:
Cur:
AcountCode:
-------------------------------
|2012-01-05T08:38:10+02:00| Soap Client has been created successfully for Validation.
|2012-01-05T08:38:20+02:00| Soap Client received bank reply successfully.
|2012-01-05T08:38:20+02:00| Bank Reply is NULL.
|2012-01-05T08:38:20+02:00| Log Ended.
--------------------------------------------------------------------------------------
There is a text file (with a date stamp on file name) which is created by another application and this application writes some data into this text file all day long.On new day a new file is created etc etc. I would like to read this text file for checking if there is "Bank Reply is NULL" entries.When I get this entry in the text file, I will send a notification email with TrnsNo and AgnNo. Lets say if I get this entry in the file at 10 pm and send an email then I should check this entry after 10 pm.I dont want to catch the old entries. Is there a way to implement this?
Best Regards.
Here is a portion of content of txt file:
--------------------------------------------------------------------------------------
|2012-01-05T08:38:00+02:00| Soap Client has been created successfully.
|2012-01-05T08:38:10+02:00| Soap Client received bank reply successfully.
|2012-01-05T08:38:10+02:00| Request Values for Validation:
-------------------------------
TrnsNo:
TrnsTime:
TrnsType:
AgnNo:
InvoiceNo:
Amount:
Cur:
AcountCode:
-------------------------------
|2012-01-05T08:38:10+02:00| Soap Client has been created successfully for Validation.
|2012-01-05T08:38:20+02:00| Soap Client received bank reply successfully.
|2012-01-05T08:38:20+02:00| Bank Reply is NULL.
|2012-01-05T08:38:20+02:00| Log Ended.
--------------------------------------------------------------------------------------