hi everybody, i'm a totally newbie in c#, i've create a little program just to read the .txt file
But how if i want to make a simple text reader takes a file from the folder using the same openfile dialog??
the components are :
i want that the openfile dialog filter not only text file | *.txt but also can select a folder to batch the reading .txt process in current folder.
when the ok button pressed the program will:
simply 'cat' the single text file to textbox output
if the selected is a folder:
will search any .txt in the folder then 'cat' the contents file to the textbox output
thx a lot! :D
But how if i want to make a simple text reader takes a file from the folder using the same openfile dialog??
the components are :
- open button -> openfile dialog
- ok button -> execute
- textbox -> display output
i want that the openfile dialog filter not only text file | *.txt but also can select a folder to batch the reading .txt process in current folder.
when the ok button pressed the program will:
- if the selected is a single text file:
simply 'cat' the single text file to textbox output
if the selected is a folder:
will search any .txt in the folder then 'cat' the contents file to the textbox output
thx a lot! :D
Comment