in reply to Trouble opening files from a directory: "no such file".

Others have solved your problem but I have a small suggestion. Add a file test in your while loop to make sure you aren't trying to open a directory named 'test.txt' contained in $fichier.

next unless -T "$dossier/$fichier";