Renaming file

Whatever your extension will be it will return you. like .txt .doc .xls

1 represents string next to .
0 represents string before to .

we need here only next to dot that is file extension (xlsx or csv or xls)

or we can even try this
yournewfilenamewithoutextenstion+Path.GetFileExtension(input_string)

this will concatenate the new filename with the input given file extension directly
simple isnt it

Cheers @KarthikBallary

is is working fine buddy
Cheers @KarthikBallary

Yes Thank u all

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.