java.io.File file = new java.io.File("/scgrp01_data1/WebSphere/AppServer/profiles/Custom01/installedApps/Cell01/esop0817_war.ear/esop0817.war/attach/17679/成员明细(694).csv");
         java.io.FileInputStream fileinputstream = new java.io.FileInputStream(file);
在AIX下始终报错 说找不到文件
那个路径是存在的
如果是英文就没问题
请高手指点下

解决方案 »

  1.   

    路径有问题~
    把相对路径改成 绝对路径看看 比如 'd:/xxx.csv'
    相对路径是根据classpath来查找的,具体规则给忘了
      

  2.   

    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    public class ReadFileTest { //读文件

    public static void ReadFile() throws IOException {

    FileReader read = new FileReader("c:/老高.txt") ;
    BufferedReader bu = new BufferedReader(read) ;
    String line = null ;
    while ((line = bu.readLine()) != null) {
    System.out.println(line) ;
    }
    bu.close() ;
    read.close() ;
    }

    public static void main(String args[]) throws IOException {
    ReadFile() ;
    }
    }就没问题。你在查查有可能和系统编号有问题/也有可能是路径的问题?关注。