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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -