New Topic to read file

Read file with the given name:
A_2_B.TXT
B_1_c.Txt
and output as
B_1_c.Txt
A_2_B.TXT
output result on the basis of its integer

Please help me with the solution

@satyam_verma

Please explain what is the change as per numbers that you are trying to do

Cheers

Sir
I want to show the result in ascending order.
in the result i will give output as the name of these file in ascending order.

If your list of files is a list of strings, then just do:
yourListOfFileNames.OrderBy(Function(s) s).ToList
Unless I didn’t understand your need :smiley:

In a folder there is multiple file with different name and extension
A_2_B.TXT
B_1_c.Txt
and output as
B_1_c.Txt
A_2_B.TXT

in the out put i want to take out files name in ascending order by integer value
i want out put as:-

B_0_C.xlsx
A_1_b.xlsx
E_2_F.xlsx
D_3_E.xlsx
c_5_D.txt

Hi @satyam_verma
Can you try this

I hope it helps!!