TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Deenbandhu Singh
NA
8
0
Retrieving file names from a directory
Sep 10 2009 4:54 PM
I have some files in my directory.
0904
Da103037105817012001 0809
.pdf,
0904
Da 316A8500103082
0709
.pdf,
0904
Da 316A8500103082 0809
.pdf,
0904
Da 00000561 0709
.pdf,
0904
Da 12971 0709
.pdf,
0904 Da
01108103039014 0709
.pdf,
09001-
1
.pdf,
09001-
2
.pdf,
09001-
3
.pdf,
09001-
4
.pdf,
09001-
5
.pdf,
09001-
6
.pdf,
09001-
7
.pdf,
09001-
8
.pdf,
09001-
9
.pdf,
09001-
10
.pdf,
09001-
11
.pdf in the same order.
I am using windows XP and files are sorted as per name.
When i wrote code for retrieving files from directory, I got output like this
0904
Da 00000561 0709
.pdf,
0904
Da 01108103039014 0709
.pdf,
0904
Da 12971 0709
.pdf,
0904
Da
316A8500103082 0709
.pdf,
0904
Da 316A8500103082 0809
.pdf,
0904
Da103037105817012001 0809
.pdf,
09001-
1
.pdf,
09001-
10
.pdf,
09001-
11
.pdf,
09001-
2
.pdf,
09001-
3
.pdf,
09001-
4
.pdf,
09001-
5
.pdf,
09001-
6
.pdf,
09001-
7
.pdf,
09001-
8
.pdf,
09001-
9
.pdf
why is this and how can i get output in the same order as i have files in my directory? Please tell me.
Reply
Answers (
1
)
How to convert XML attribute to Element using C#?
How to take dateTime of the web server in our window application