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";
In reply to Re: Trouble opening files from a directory: "no such file".
by Gulliver
in thread Trouble opening files from a directory: "no such file".
by Alienor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |