checking form of a text file