Возможно, это немного смущает, но через несколько часов я все еще не могу создать файл на Java ...
File file = new File(dirName + "/" + fileName);
try
{
// --> ** this statement gives an exception 'the system cannot find the path'
file.createNewFile();
// --> ** this creates a folder also named a directory with the name fileName
file.mkdirs();
System.out.println("file != null");
return file;
}
catch (Exception e)
{
System.out.println(e.getMessage());
return null;
}
Что мне здесь не хватает?