deletefile

Unable to delete a file after reading it.

I'm serving a file from the file system dynamically with a jsp Here's my code: <%@ page import="java.io.*,java.util.*" InputStream in = null; OutputStream responseOut = null; File file = new File(request.getAttribute("fileToServe")); try{ in = new FileInputStream(file); responseOut = response.getOutpu...

FtpWebRequest DeleteFile fails with a web exception if the file name contains a # character

Hi, I am using the following code to delete a file from out Ftp server: private FtpWebRequest CreateFtpRequest(string requestUri, string method) { if (requestUri == null) { throw new ArgumentNullException("requestUri"); } FtpWebRequest ftpWebRequest = null; try ...

Response.TransmitFile and delete it after transmission

Hi, i have to implement GEDCOM export in my site. my .net code created one file at server when export to gedcom clicked. then i need to download it to client from server as well as user should be asked to where to save that file means savedialog is required. after its downloaded. i want to delete that file from server. i got one code t...