kmp and files