Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的意思是我的班级文件夹中的txt文件。我想找到它的路径并打开txt文件。我怎样才能找到那条路?
File ftxtFile = new File(something_in_here+"\\myfile.txt");
快乐阅读Java:基本 I/O
PS:以后你应该更加积极主动,因为这样的基本东西很容易找到