detect diary.txt