When we create a file using FileInputStream or RandomAccessFile classes, it's created in the same directory as the current project exists in (say \Project). What do I do if I wanna create the file in Project\dir1?? And also, how do I open the file from dir1??
EDIT (code and details added)
Creating a file in this manner
FileInputStream myFile=new FileInputStream("Filename.extension");
/* or */
RandomAccessFile RAF=new RandomAccessFile("Filename.extension", "rw");
creates the file in the directory of the current project. the file named Filename.extension gets created in the directory E:\JAVA1\Project but I wanna create the file in E:\JAVA1\Project\dir1. Can anyone please tell me how to do that? How do I specify the path to the sub-directory?