ASP.NET reading files from BIN
Posted
by nettguy
on Stack Overflow
See other posts from Stack Overflow
or by nettguy
Published on 2010-04-11T19:31:29Z
Indexed on
2010/04/11
19:33 UTC
Read the original article
Hit count: 341
I am processing some CSV file which i have copied in Bin folder of My ASP.NET Website.
When i execute
using (IDataReader csv = new CsvReader
(new StreamReader("sample.txt"), true, '|'))
{
.....
}
it complains me that "sample.txt"
not found in "c:\Program Files\.....\
"
Won't the runtime
automatically look into the bin
folder?
what modification do i need to do?
© Stack Overflow or respective owner