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
Post a Comment