相关代码 |
|
import java.io.*; public class myFileTest { public static void main(String args[]) throws IOException { byte buffer[]=new byte[1024]; File f1=new File("F:\\java","2.txt"); FileInputStream file=new FileInputStream(f1); while((file.read(buffer))!=-1) System.out.print(buffer); file.close(); } }
相关资源 |
|