If I want to create a file in C:/a/b/test.txt
, can I do something like:
File f = new File("C:/a/b/test.txt");
Also, I want to use FileOutputStream
to create the file. So how would I do it? For some reason the file doesn't get created in the right directory.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…