954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

insert numbered text

Hi every one
I have this url
www.websiteaddress.com/0010001
and i want to keep counting on it like it becomes
www.websiteaddress.com/0010002
www.websiteaddress.com/0010003
and so on and i want all lines to be in a sing text file
so please help me do this

shandoosheri
Light Poster
42 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

You can use a loop with an integer or double and use .ToString().PadLeft(n, '0') if you need the last n digits incremented.

Hi every one I have this url www.websiteaddress.com/0010001 and i want to keep counting on it like it becomes www.websiteaddress.com/0010002 www.websiteaddress.com/0010003 and so on and i want all lines to be in a sing text file so please help me do this
thines01
Postaholic
Team Colleague
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: