How to loop .txt file ?