I have a file that is downloaded from a server each day with records on each line. the file is called PUNCH.001. each file contains an X on the 6th element of the first line of the daily PUNCHfile and a Z on the 5th element of the last line of the same daily PUNCHfile. Problem is, sometimes the file gets cut off in the middle and then starts a new PUNCH.002--so..the first file is missing the "Z" line and the second is missing the "X" line. I have to check this file everyday, and if this wierd cutoff thing happens I have to manually cut and paste the two files together, arghh- How would I write a small program to check the PUNCH.001 file to see if there is the 'X' and 'Z' line and if it is missing one, grab the second (punch.002) and put them together. I am kinda new to this stuff so any help is greatly appreciated. thnkas
alot.
here is what I have so far:
(edited by Cindy to format code)
[This message has been edited by Cindy Glass (edited May 09, 2001).]