I have an object of class File that represent a directory. I now want to create a new File object that refers to a file within that directory. The following code seems to work:
String filePath = myDirectory.getAbsoutePath().concat("\\myFileName");
File theFile = File(filePath);
But, I was wondering if there was a way to do it without the File --> String --> File conversion.
Thanks.