Generate numbers with a range and store to file.
Can some one please help me here, i have been looking around the internet for a while and no luck in brushing the dust off my cpp skills.
Can someone post the source for this easy program.
I want a program that generates numbers from 0000001 to 9999999 and store them to text file with each value on a new line and also before storing to the textfile it needs to add a prefix of 050.
eg. inside number.txt
0500000001
0500000002
0500000003
..
..
..
..
0509999999
please take 5min and help me here someone.