checking form of text files