QUOTE(Zhalix @ 14 Jul, 2008 - 10:47 PM)

Here's a link that explains file handling:
http://www.dreamincode.net/forums/showtopic29575.htmYou can create random numbers in this way:
CODE
Dim intNumber As Integer
'Only do this once
Randomize
'This will create a random number in the range of 1 to 5
intNumber = Int(Rnd * 5) + 1
If you look at the tutorial at the top and also use the randomizing code I provided, you can probably figure this out. Try it on your own and if you still can't do it, post again but this time with the code you have that's not working.
I have attach code.txt file,it contain product pages generation code , i have stemp string var which have to append each time in log file called generationlog.txt which contain line like "Supplier's Product Page Last ID Generated is 6997 7/15/2008 11:17:04 " .
I have to write this line at line 1 of text file ,same way for directory page i have write line "Directory Page Last ID Generated is 6997 7/15/2008 11:17:04 AM" at line 2 of text file.
Same way for different category pages i have write at respective line.
Additionaly it should write current ID which is in above mentioned line only
Not for all ID ok.
Reply as soon as possible.