Add a checksum in each line.
After user type something in text file, It will generate checksum
in the end of each line.
Example:
This is first record#k

"This is first record" is the sentence which was typed by user.
"#" is a delimiter which could seperate sentence and checksum
character .
"k"(0x6B) is a ascii code which was generated by checksum function