import java.io.IOException;
import java.io.FileWriter;
import java.net.URL;
import java.util.Scanner;

public class converter
{
    public static final String DIRECTOR = "Director:";
    public static final String STARRING = "Starring:";
    public static final String RATING = "Rating:";
    public static final String MEDIA = "Media:";
    public static final String LANGUAGES = "Languages:";

    public static final String OUTPUT_FILE = "library.csv";

    public static void main (String args[]) throws IOException
    {
	String fileName = "FF74D200-9E9B-4A7C-8A58-70CEAA7FF488.html";

	URL url = new URL("file://"+System.getProperty("user.dir")+"/"+fileName);
	Scanner sc = new Scanner(url.openStream());
	StringBuffer sb = new StringBuffer();

	while (sc.hasNext())
	{
	    sb.append(sc.next());
	}

	String result = sb.toString();

	// Removing the HTML tags

	result = result.replaceAll("<[^>]*>", "");
	//	System.out.println("Contents of the web page: "+result);

	int directorStart = result.indexOf(converter.DIRECTOR);
	String movie = result.substring(0, directorStart);

	int starsStart = result.indexOf(converter.STARRING);
	String director = result.substring(directorStart+converter.DIRECTOR.length(), starsStart);

	int mediaStart = result.indexOf(converter.MEDIA);
	int languagesStart = result.indexOf(converter.LANGUAGES);
	String media = result.substring(mediaStart+converter.MEDIA.length(), languagesStart);

	System.out.println("Movie: "+movie);
	System.out.println("Director: "+director);
	System.out.println("Media: "+media);

	FileWriter csvWriter = new FileWriter(OUTPUT_FILE);

	csvWriter.append(movie);
	csvWriter.append(",");
	csvWriter.append(director);
	csvWriter.append(",");
	csvWriter.append(media);
	csvWriter.append("\n");

	csvWriter.flush();
	csvWriter.close();
    }
}
@@ -1798,9 +1798,1268 @@
 ;%0A    %7D%0A
+%0A    private static void addFileData (FileWriter csvWriter)%0A    %7B%0A%09String fileName = %22FF74D200-9E9B-4A7C-8A58-70CEAA7FF488.html%22;%0A%0A%09URL url = new URL(%22file://%22+System.getProperty(%22user.dir%22)+%22/%22+fileName);%0A%09Scanner sc = new Scanner(url.openStream());%0A%09StringBuffer sb = new StringBuffer();%0A%0A%09while (sc.hasNext())%0A%09%7B%0A%09    sb.append(sc.next());%0A%09%7D%0A%0A%09String result = sb.toString();%0A%0A%09// Removing the HTML tags%0A%0A%09result = result.replaceAll(%22%3C%5B%5E%3E%5D*%3E%22, %22%22);%0A%09//%09System.out.println(%22Contents of the web page: %22+result);%0A%0A%09int directorStart = result.indexOf(converter.DIRECTOR);%0A%09String movie = result.substring(0, directorStart);%0A%0A%09int starsStart = result.indexOf(converter.STARRING);%0A%09String director = result.substring(directorStart+converter.DIRECTOR.length(), starsStart);%0A%0A%09int mediaStart = result.indexOf(converter.MEDIA);%0A%09int languagesStart = result.indexOf(converter.LANGUAGES);%0A%09String media = result.substring(mediaStart+converter.MEDIA.length(), languagesStart);%0A%0A%09/*%0A%09System.out.println(%22Movie: %22+movie);%0A%09System.out.println(%22Director: %22+director);%0A%09System.out.println(%22Media: %22+media);%0A%09*/%0A%0A%09csvWriter.append(movie);%0A%09csvWriter.append(%22,%22);%0A%09csvWriter.append(director);%0A%09csvWriter.append(%22,%22);%0A%09csvWriter.append(media);%0A%09csvWriter.append(%22%5Cn%22);%0A    %7D%0A%0A
 %7D

Update converter.java