Hi guys!
I have a little question, and i found that forum as the best place for asking it.
so, i built a little code, that deletes a file wich the user choose.
as you all know, codes that suppose to use any output file have an approach only to files in the specific folder that holds their Java doc (of the code).
my question is how can i choose the place of my output file?, how can i change it's folder?
Thank you very much!
mike
I have a little question, and i found that forum as the best place for asking it.
so, i built a little code, that deletes a file wich the user choose.
Code:
import java.io.File;
import java.io.IOException;
public class Delete {
public static void main(String[] argv) throws IOException {
File del = new File("Delete.java");
del.delete();
}
}
my question is how can i choose the place of my output file?, how can i change it's folder?
Thank you very much!
mike
Comment