Are both correct? She ate the whole packet of biscuits. She ate a whole packet of biscuits.
Yes, but the first refers to a packet of biscuits that is known about; the second doesn't.
Context is always important; labelling is rarely important.
Forum Rules