vb.net - Visual Basic read text file and delete files from that file -


i know how tell program how read file dont know how use information delete files text file.

example;

i have text file called ban.txt inside file there 2 lines text abc.exe , cba.exe

i want program read content of ban.txt , delete specified files.

assuming know how read file , find file names, add statement for-each:

my.computer.filesystem.deletefile(strfilename) 

there options displaying error messages , sending file recycle bin.

my.computer.filesystem.deletefile("c:\test.txt", fileio.uioption.alldialogs, fileio.recycleoption.sendtorecyclebin) 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -