vb.net get file names in directory? -


i have following code.

dim text string = io.file.readalltext("c:\example.xtp") 

this code specific single file, file.readalltext every file in particular directory.

how can achieve this?

you need use io.directory.getfiles function.

dim files() string = io.directory.getfiles("c:\")  each file string in files   ' work, example   dim text string = io.file.readalltext(file) next 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -