给出写文件的代码如下:(不考虑异常)FileOutputStream fout=new FileOutputStream(“datafile”);DataOutputStream dout=new DataOutputStream(fout);for(int i=0;i<500;i++) {dout.writeInt(i);}dout.close();fout.close();请问如下哪些代码可以从datafile中读出刚写入的数据?
A.
FileInputStream fin=new FileInputStream(“datafile”); DataInputStream din=new DataInputStream(fin); din.readInt();
B.
FileReader fr=new FileReader(“datafile”); fr.readInt();
C.
FileInputStream pin=new FileInputStream(“datafile”); pin.readInt();
D.
FileReader fr=new FileReader(“datafile”); DataInputStream din=new DataInputStream(fr); din.readInt();