JBuilderw 中的界面怎么做呀?
public class FileInputStreamTest {
public static void main(String[] args) {
//建立一个文件输入流
try {
FileInputStream fis = new FileInputStream("e:/readme.txt");
byte[] content=new byte[fis.available()];
fis.read(content);
System.out.println(new String(content));
}
catch (FileNotFoundException ex) {
ex.printStackTrace();
}
catch (IOException ex) {
ex.printStackTrace();
}
}
}
public class FileInputStreamTest {
public static void main(String[] args) {
//建立一个文件输入流
try {
FileInputStream fis = new FileInputStream("e:/readme.txt");
byte[] content=new byte[fis.available()];
fis.read(content);
System.out.println(new String(content));
}
catch (FileNotFoundException ex) {
ex.printStackTrace();
}
catch (IOException ex) {
ex.printStackTrace();
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货