摘要:
public class SerializableObj { public static void main(String[] args) { ObjectOutputStream oos=null; try{ //1.创建ObjectOutputStream输出流 oos =new ObjectO 阅读全文
摘要:
public class DataInOutTest { public static void main(String[] args) { DataOutputStream dos=null; DataInputStream dis=null; FileInputStream fis=null; F 阅读全文
摘要:
public class FileReaderTest { public static void main(String[] args) { Reader fr=null; try{ //2.实例化FileReader对象 fr =new FileReader("D:\\doc\\诗词.txt"); 阅读全文
摘要:
public class FileWriterTest { public static void main(String[] args) { Writer fw=null; try{ //创建FileWriter对象 fw =new FileWriter("D:\\DOC\\mysaying.txt 阅读全文
摘要:
public class InputStreanTest { public static void main(String[] args) { InputStream fis=null; try{ //2.创建文件输入对象 fis=new FileInputStream("D:\\doc\\test 阅读全文
摘要:
public class InputStreamTest { public static void main(String[] args) { InputStream fis=null; try{ //2.创建文件输入对象 fis=new FileInputStream("D:\\doc\\test 阅读全文
摘要:
public class OutputStreamTest { public static void main(String[] args) { OutputStream fos=null; try{ //2.创建文件输出对象 fos = new FileOutputStream("D:\\doc\ 阅读全文