Masternoob
Member
i have a txt file and i read this file line by line...
the text file look like:
now i want to sort the lines by alphabet and write it back to the file in the right order so that it will look like:
so at first i need to sort the first entry (delimiter "\" )
then the second entry...
and so on
and if there is a entry twice in the list, i want to delete one
i have no idea how to do this in progress =/
thank you for your help
the text file look like:
Code:
test\test.txt
newtest\newtest.txt
anothertest\text.bat
newtest\newtest.txt
Code:
anothertest\text.bat
newtest\newtest.txt
test\test.txt
then the second entry...
and so on
and if there is a entry twice in the list, i want to delete one
i have no idea how to do this in progress =/
thank you for your help