text file checking