Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
open file after find it with FileInfo
Mohamed Moumni
May 31 2017 9:17 PM
214
Reply
1 ) i read the part about (Working with FileInfo and DirectoryInfo classes) . but i don't find a function to open the specific file by comparing his name with the name on textbox ,
how can i open a file however his extension ?
if (diri_info.Name == textBox1.Text)
{
{
foreach (FileInfo file in files_info)
{
// open this file
listBox1.Items.Add(file.Name);
}
}
2) how can i get name for all files on 4 Directory on one specific Directory ?
think you !
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Unable to create unit test for my code
Dependency Injection