import java.io.IOException;
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 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);
    }
}
@@ -21,16 +21,43 @@
 eption;%0A
+import java.io.FileWriter;%0A
 import j
@@ -389,16 +389,77 @@
 ges:%22;%0A%0A
+    public static final String OUTPUT_FILE = %22library.csv%22;%0A%0A
     publ
@@ -1541,16 +1541,266 @@
 +media);
+%0A%0A%09FileWriter csvWriter = new FileWriter(OUTPUT_FILE);%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%0A%09csvWriter.flush();%0A%09csvWriter.close();
 %0A    %7D%0A%7D

Update converter.java