File with while example