In my application I need to store various files into a zip file. To locate required file easily I am also including one file called lookup.txt in my zip file which will have MD5 lookup. I have attached my code and it is not functioning as expected When I create new zip file it already contains a blank text file named lookup.txt, hence input to this VI is never an invalid zip file. When I add first pattern it gets added properly with name 1.ptn, when I add 2nd pattern it gets created properly with name 2.ptn but 1.ptn gets erased. And after that if I try to add more patterns no pattern gets added. Zip file always shows 2 file viz. lookup.txt and 2.ptn I am not getting any error. Must be some silly mistake but I am not getting it.