Hi
I am wondering if you do something like
public FileResult result()
{
Stream stream = new Stream();
return File(stream,"text/html","bob.html");
}
if File() would close the stream for you? Since I tried to put the "stream" in a using statement but it always gave me a error saying the stream was closed.
public FileResult result()
{
using(Stream stream = new Stream())
{
return File(stream,"text/html","bob.html");
}
}