java创建文件失败
文件名是 : 安装postgreSQL出现configure:error:readline library not found解决方法及pg安装全过程.html
if(!file.exists()){ try { System.out.println(file.getName()); file.createNewFile(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); return; } }package com.zss.io;import java.io.File;import java.io.IOException;public class FileTest { public static void main(String[] args) { File file = new File("D://安装postgreSQL出现configureerrorreadline library not found解决方法及pg安装全过程.html"); if(!file.exists()){ try { System.out.println("=============="+file.getName()); file.createNewFile(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); return; } } }}
[解决办法]
自己新建一个文件,改名为:“安装postgreSQL出现configure:error:readline library not found解决方法及pg安装全过程.html”也是不行的