package dicom;
import java.io.*;
public class Demo {
public static void main(String args[]) throws IOException {
File filePath = new File("G:\\2.txt");
BufferedReader br;
String s = null;
try {
br = new BufferedReader(new FileReader(filePath));
while ((s = br.readLine()) != null) {
String[] str = s.split("]");
String string=str[0].split("\\[")[1];
if (string==null){
System.out.println();
}else {
System.out.println(string);
}
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}