Phil_Pearce
Member
- Joined
- Dec 30, 2009
- Messages
- 6
- Programming Experience
- Beginner
Hi,
I am using the StreamReader to open a .csv file and read it into a datatable but I would like to know how to use the StreamReader to open a file without specifying the file name in a specified directory. There will only ever be one file in this directory.
I have tried using GetFile to look in the folder and return the name but that does not seem to want to work.
Any help would be much appreciated.
Phil
I am using the StreamReader to open a .csv file and read it into a datatable but I would like to know how to use the StreamReader to open a file without specifying the file name in a specified directory. There will only ever be one file in this directory.
I have tried using GetFile to look in the folder and return the name but that does not seem to want to work.
Any help would be much appreciated.
Phil