Implement checking of file content (algorithm FA)