Here you can find the source of createNewFile(String filePath)
public static void createNewFile(String filePath)
//package com.java2s; import java.io.File; import java.io.IOException; public class Main { public static void createNewFile(String filePath) { File file = new File(filePath); try {//from w ww . j av a 2 s . co m file.createNewFile(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }