JAVA
码农邦
想造机器人的傻邦邦
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JAVA获取程序/jar包所在路径
public class path{ public static void main(String []args){ //输出本程序/jar包所在路径 System.out.println(System.getProperty("user.dir")); } }原创 2020-12-29 00:43:17 · 1274 阅读 · 0 评论 -
JAVA追加写文件方法
import java.io.*; public class ReadFile{ public static void main(String []args)throws IOException{ /* *Linux 系统分隔符为:/ *Window 系统分割符为:\\ */ //写文件 File file2 = new File("C:\\write.txt"); if(!file2.exists()){fil.原创 2020-12-29 00:39:09 · 531 阅读 · 0 评论 -
JAVA读写文件模板
import java.io.*; public class ReadFile{ public static void main(String []args)throws IOException{ /* *Linux 系统分隔符为:/ *Window 系统分割符为:\\ */ //读文件 File file1 = new File("C:\\read.txt"); FileReader reader = new .原创 2020-12-29 00:36:17 · 371 阅读 · 0 评论
分享