Android File Create createFileInFolder(File folder, String fileName)

Here you can find the source of createFileInFolder(File folder, String fileName)

Description

create File In Folder

Declaration

public static File createFileInFolder(File folder, String fileName)
            throws IOException 

Method Source Code

//package com.java2s;
import java.io.File;
import java.io.IOException;

public class Main {
    public static File createFileInFolder(File folder, String fileName)
            throws IOException {
        File file = new File(folder, fileName);
        file.createNewFile();//  ww w. j  a v a2 s  .com
        file.deleteOnExit();
        return file;
    }
}

Related

  1. createFile(String path)
  2. createFile(String path, List content)
  3. createFile(String path, String content)
  4. createFile(String path, boolean isFile)
  5. createFileInFolder(File folder, String fileName)
  6. createIfNoExist(String path)
  7. createNewFile(File file)
  8. createNewFile(String filePath)
  9. createNewFile(String filePath)