public class Textl
{
public static void main (String[] args) throws I0Exception f
File file = new File( pathname: "d: \ la. txt"):
System. out. println (file. createNewFile):
Filenriter fw = new FileNziter ( fileName: “a. txt");
fw. write str:
^01_三国演义_新版_高清_火烧赤壁.avi\z”
+
02_三国演义_新版_高清_官渡之战.avilz”
+
03_三国演义_新版_高清_三英战吕布.avila”
+
04_三国演义_新版_高清_温酒新华雄.avi〞);
fw. close () :
FileReader fr = nem FileReader ( fileName:”d: 1ltxt
"):
这种挺规则的,直接按"_"拆分成数组,取需要的几个拼接成一个字符串,再写io就行了吧。