move n delete a file in JSP

hi, i am fresher in using JSP. i am trying to create a function that can move a file from a folder to another folder, once done, delete the file from original folder. Likeoriginal file: C:\folderA\fileA.zipmove to i) C:\folderB\fileA(add today date and
[297 byte] By [cSk@nG5a] at [2007-11-27 8:49:54]
# 1

use this code

import java.io.File;

import java.io.FileReader;

import java.io.FileWriter;

import java.io.IOException;

public class Copy {

public static void main(String[] args) throws IOException {

File inputFile = new File("farrago.txt");

File outputFile = new File("outagain.txt");

FileReader in = new FileReader(inputFile);

FileWriter out = new FileWriter(outputFile);

int c;

while ((c = in.read()) != -1)

out.write(c);

in.close();

out.close();

}

}

JSP_Todlera at 2007-7-12 20:59:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
ok, thanks .....
cSk@nG5a at 2007-7-12 20:59:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...