1. Write a program which creates a file with all the numbers from 1 to 100.
2. Read this file. Separate the odd numbers from even numbers and write the odd numbers to a new file called odd.dat, even numbers to even.dat.
3. Read the odd.dat file, total all the numbers which are divisible by 3, find the average of these numbers and append to end of this file.
So far I manage to create a file and read it from it but I cannot separate it properly