Joined: 24 Aug 2006 Posts: 2 Location: philippines
hi can anyone help me with my program...?
i need to include error log file in my program.
this error log file include a header, detail and 2 trailer.
the header holds the rundate
detail for the said error
the 1st trailer hold the number of error for the rundate
and the 2nd trailer computes for the previous number of error + the current number of error
the file should look like this one....
00001CN01XXXXXXXXDUPLICATE DATA error detail
00002CN01XXXXXXXXDUPLICATE DATA error detail
00003CN01XXXXXXXXDUPLICATE DATA error detail
000000000003 total number of error
000000000003 total error + previous error
00004CN01XXXXXXXXDUPLICATE DATA error detail
00005CN01XXXXXXXXDUPLICATE DATA error detail
000000000002 total number of error
000000000005 total error + previous error
how am i going to sort the error detail for the day without mixing up with header and trailers.??
and how am i going to know if what i read is a header or trailer??