怎样实现java写的记事本,禁止粘贴复制功能的记事本,禁止键盘和鼠标粘贴复制!!不胜感激啊!!
1个回答
展开全部
String file = "demo.txt";
PrintWriter out = new PrintWriter(
new OutputStreamWriter(
new BufferedOutputStream(
new FileOutputStream(file)), "utf-8"));
out.println("HI,");
out.println("我是!");
out.println("来自。。。");
out.close();
一次写出一行到文件中
PrintWriter out = new PrintWriter(
new OutputStreamWriter(
new BufferedOutputStream(
new FileOutputStream(file)), "utf-8"));
out.println("HI,");
out.println("我是!");
out.println("来自。。。");
out.close();
一次写出一行到文件中
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询