I am trying to code in Hamming code(python language) on data present in a .txt file. How can I go about it? DO I need to read out the data line by line, convert into ascii characters and then compute hamming code on it. Or is there any function or library in python that can serve as a window and can operate on the whole file as one?
Your reply is very appreciated. Than you in advance.
Edit: The scenario is a client server architecture. Client tries to upload a file to server after computing hamming code of the data and stores it in server. Later when it tries to retrieve back the file, it checks the hamming code and detects any error that may have occurred.