© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
20 replies
Ewan

Outputting the files from a folder and then numbering them

So ive been able to output files from a folder but now i want to number them 1 to 12 but im not sure how. i tried with this for loop and it kinda works, it does number them from 1 to 12 but it does it to each file 12 times so like:
1.file1
2.file1
3.file1
all the way up to 12 and then
1.file2
2.file2
3.file2
up to 12 and so on
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Outputting values from a list
C#CC# / help
3y ago
❔ How to pack third-party files together with exe and then access them from the code?
C#CC# / help
4y ago
✅ Adding a string to a double and then outputting it as a string
C#CC# / help
2y ago
❔ outputting data from database into a new form
C#CC# / help
3y ago