Java Path File Name nio getFileInFolder(Path p, String filename)

Here you can find the source of getFileInFolder(Path p, String filename)

Description

get File In Folder

License

Open Source License

Declaration

private static File getFileInFolder(Path p, String filename) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;

import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;

public class Main {
    private static File getFileInFolder(Path p, String filename) throws IOException {

        Path path = Paths.get(p.toString(), filename);
        File f = new File(path.toString());
        f.createNewFile();// w w  w  .  j a v a  2s.com
        return f;
    }
}

Related

  1. getDataPath(String filename)
  2. getDeckNameFromFile(final Path deckFile)
  3. getDefaultPathName(final String address, final long lspId)
  4. getDirectoryNames(Path baseDirectory)
  5. getFileContent(String fileNameOrPath)
  6. getFilename (final String filepath)
  7. getFilename(final Path path)
  8. getFilename(final Path path)
  9. getFileName(Path path)