@@ -0,0 +1,1478 @@
+/*%0A *               In the name of Allah%0A * This file is part of The %22Quran Teacher or Learn Arabic%22 Project. Use is subject to%0A * license terms.%0A *%0A * @author:         Fazle Rabbi Rahat%0A * %0A */%0Aimport java.io.BufferedReader;%0Aimport java.io.File;%0Aimport java.io.FileOutputStream;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.io.Reader;%0A%0A%0Apublic class GetAllImageLinks %7B%0A%09%0A%09String defaultResource = System.getProperty(%22user.dir%22) +%22/WbWInfo.txt%22;%0A%09public static void main(String%5B%5D args)%0A%09%7B%0A%09%09new GetAllImageLinks();%0A%09%7D%0A%09%0A%09public GetAllImageLinks()%0A%09%7B%0A%09%09FileOutputStream foStream=null;%0A%09%09File file=new File(defaultResource);%0A%09%09BufferedReader reader=null;%0A%09%09try%0A%09%09%7B%0A%09%09%09reader=new BufferedReader(new FileReader(file));%0A%09%09%09System.out.println(%22Info file accessed successfully%22);%0A%09%09%09%0A%09%09%09foStream=new FileOutputStream(System.getProperty(%22user.dir%22)+%22/WbWImageLinks.txt%22);%0A%09%09%09System.out.println(%22links file created successfully%22);%0A%09%09%09%0A%09%09%09String text;%0A%09%09%09while((text=reader.readLine())!=null)%0A%09%09%09%7B%0A%09%09%09%09if(text.startsWith(%22imageLink%22))%0A%09%09%09%09%7B%0A%09%09%09%09%09String link=text.substring(text.indexOf('=')+1)+%22%5Cn%22;%0A%09%09%09%09%09foStream.write(link.getBytes());%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%0A%09%09%7Dcatch(IOException ie)%0A%09%09%7B%0A%09%09%09ie.printStackTrace();%0A%09%09%7D%0A%09%09finally%0A%09%09%7B%0A%09%09%09try%0A%09%09%09%7B%0A%09%09%09%09if(reader!=null)%0A%09%09%09%09%09reader.close();%0A%09%09%09%09if(foStream!=null)%0A%09%09%09%09%7B%0A%09%09%09%09%09foStream.close();%0A%09%09%09%09%09System.out.println(%22Writing file closed%22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09catch(IOException ie)%0A%09%09%09%7B%0A%09%09%09%09ie.printStackTrace();%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

Create GetAllImageLinks.java