摘要:
在控制台录入文件的路径,将文件拷贝到当前项目下。 分析: 1.定义方法对键盘录入的路径进行判断,如果是文件就返回。 2.在主方法中接收该文件。 3.读和写该文件。 public static void main(){ File file = getFile(); //获取文件 BufferedInp 阅读全文
摘要:
將寫出的字異或上一個數,這個數就是密碼,解密的時候再次異或就可以了 public static void main(String [] args){ BufferedInputStream bis = new BufferedInputStream(new FileInputStream("紫薇.j 阅读全文
摘要:
public static void main(String [] args) throws IOException{ try( FileInputStream fis = new FileInputStream ("xxx.txt"); FileOutputStream fos = new Fil 阅读全文