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

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -