Hi frnz ,

i need a C# code for to sorting text file , considering each row as one record and sort it according to that.

e.g INPUT File

my name is d
my name is h
i am a
how are you
what is your name

OUTPUT File

how are you
i am a
my name is d
my name is h
what is your name

thanks in advance,

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.