Answer
For writing numeric data into a file we will first need to convert it into string. We can use str function for this.
For reading numeric data we need to convert string received to numbers, we can use functions like int, float etc. for it.
Work Step by Step
Same as above.