按照老师的代码,控制台只输出了一个问号,这是为什么?
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
FileInputStream in = new FileInputStream("D:\\javaio.txt");
InputStreamReader isr = new InputStreamReader(in);
int c;
while((c=isr.read())!=-1);
System.out.print((char)c);
贴代码!
文件位置写错没有