Hi Shabbir,
"Read the file and get the last number. Increment it by one and then add one to it and save the next one"

Can you please tell me in psuedu code or something please small bit implementation?