Ahoj :) díki za fintu ;) ...problém je že mi to dáva chybu v tomto riadku$currentFile =. '.txt';nevieš čo je zle ?