Hi i need to create about 100 files in a numbered sequence like :
file1.txt,file2.txt,file3.txt .
so how can i create these files using c#.
shandoosheri
0
Light Poster
Recommended Answers
Jump to PostYou could use a for-loop like this:
for (int i = 0; i < NumOfFiles; i++) { Filname = "Myfilename" + i.ToString(); // other code here }
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.