How to store and restore on file system a 100K/B array


I’m having trouble writing an algorithm to store an array of 2-byte integers, this array is roughly composed of 50,000 (fifty thousand) positions.

I studied the file-s module tutorial to handle files but I was not comfortable with the form used, and would like to ask for help and algorithmic suggestions to solve this problem…


Could someone help me with something concrete?