代码如下:  import java.io.*; /**  * @author user  * @version 1.0  */ public class FileInputStreamDemo {
  public static void main(String args[]) {      if (args.length !=1) {        System.err.println("Syntax - FileInputStreamDemo file");    return;   }   try {        InputStream fileInput = new FileInputStream (args[0]);        int data =fileInput.read();        while (data != -1) {          System.out.write( data );          data = fileInput.read();    }    fileInput.close();   }   catch (IOException ioe) {        System.err.println("I/O error - "+ioe);   }  } }
  问题:当我输入文件时,却不能显示文件内容或者不能显示文件全部内容,哪位能告诉我一下? 我是菜鸟~~  
 
  |