Read file name some text?

@fairymemay - please check this post…

Here instead of change it to (1) …

StrArrayNum =  Directory.GetFiles("YourFolderName","*.pdf").select(Function(x) path.GetFileNameWithoutExtension(x).split("_"c)(1)).toarray

Here StrArrayNum is of variable type String Array

1 Like